rsh & rlogin


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers rsh & rlogin
# 1  
Old 04-24-2002
Question rsh & rlogin

I'm trying to execute the next command:

" rsh CompName date "

which means i want to get the date from a machine which i have its CompName.

but i get the answer : "Connection refused"

what do i need to do ?
how can i sign myself as user or guest in the other machine ?

thanks in advanced
# 2  
Old 04-24-2002
i wouldn't recommend to use the r-commands (rsh, rlogin, rcp). Instead try ssh (ssh, slogin, scp), they are MUCH more secure (encryption and strong authentication model).

$ ssh -l inbal CompName date

Smilie


EDIT: As for the question you asked.. Smilie
The CompName's firewall is probably set to reject incoming connections to the rsh-port.
Also make sure the computer you're on is allowed to connect( /etc/hosts.allow on CompName )

Last edited by J.P; 04-24-2002 at 02:03 PM..
# 3  
Old 04-24-2002
Actually, the r* commands are fine if you have a trusted network as we do where I work. I use rlogin and rcp on a weekly basis. If you are in an unsecure network, JP is correct. Also, JP may be right in saying that your r*commands and rsh may be disabled by your company.


If they are not disabled...
_____________________________________
I would recommend using rlogin and rcp if you can setup .rhosts on your servers.

All servers must be in a trusted network to use these safely. However, I would prevent users from having .rhosts in their home directories because they would be able to allow unwanted access to your systems.

To configure .rhosts, have each system name in the .rhosts file on the other box, usually in the / or /root directory depending on your OS configuration.

Then you could use rlogin to get to the other box or rcp to copy to or from each box.


Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Deny rsh,tn,or rlogin

Is there a way to deny access to a specific remote login option. example: usera--deny telnet access but keep rsh and rlogin userb--keeps telnet, rsh, and rlogin I'm basically trying to contol the access per services instead of changing the LOGIN REMOTELY(rsh,tn,rlogin) option to yes or no. (12 Replies)
Discussion started by: leemalloy
12 Replies

2. Shell Programming and Scripting

Rlogin / RSH / SSH

Hello, I am looking for a connection method in which i can connect to a remote server but I want to have only one chance to connect to the remote server (not to be asked for iuser name and password again). If I have provided a wrong password then I want the connection to broke and be routed... (1 Reply)
Discussion started by: LiorAmitai
1 Replies

3. UNIX for Dummies Questions & Answers

RSH/rlogin problem

Hello, When I try and RSH/RLOGIN onto a box with user root, I get the prompt but the username/password combination NEVER work. I have the password up properly on the host machine. Does rsh/rlogin not make use of ./etc/passwd and /etc/shadow? (1 Reply)
Discussion started by: mojoman
1 Replies

4. UNIX for Advanced & Expert Users

RSH or SSH & security

I am wanting to run backups to remote servers ie: A to B's tape drive and B to A's tape drive. Should I use rsh or ssh? It looks as those rsh opens up security issues (the backup has to run as root). Which one should be used and does someone have the links to set up allowed connections. In what I... (7 Replies)
Discussion started by: jphess
7 Replies

5. Shell Programming and Scripting

ftp, rlogin , rcp, rsh are not wroking

Hi Friends I am facing one problem, I am not able to use ftp, rlogin , rcp, rsh in a particular server. when I am trying to ftp certain file from that server it is giving Connection closed by remote host. Now from other unix box I am not able to rlogin that particular server. as .rhosts... (3 Replies)
Discussion started by: itsjoy2u
3 Replies

6. UNIX for Advanced & Expert Users

Remote commands problem using RSH & Rexec

I have enabled the RSH and Rexec command in my HP-UX server but when i try to send any command to the server it returns Execute Permission Denied except commands like ls-l C:\rsh xxx.xxx.xxx.xxx -l mpac mxpkill 12 the mxpkill command work when I log to the server using telnet with the same... (0 Replies)
Discussion started by: fhuwaidy
0 Replies

7. Shell Programming and Scripting

Rsh & Sqlldr

Dear expert, Can we invoke sqlldr command remotely. When I try rsh command in machine 10.1.65.116, it's failed on sqlloader command. However, nothing wrong on the shell scripts or environment setting of the remote environment, I able to execute in the scripts in remote machine. in machine... (8 Replies)
Discussion started by: epall
8 Replies

8. Programming

rlogin/rsh incoming port

Hi all, In need to know why my sample code below that connect to a rlogind (513) fails, but original unix rlogin does not ? (.rhosts is verified to be correct) I heard rlogin/rsh bind to a reserved port before connecting to the rlogin server. what are they ??? s = socket(AF_INET,... (1 Reply)
Discussion started by: andryk
1 Replies

9. UNIX for Advanced & Expert Users

rcp & rsh

Hi everybody, I have a problem with rcp & rsh command from Winnt 4 to an AIX machine. I would like to use rsh from Winnt on Unix but it works only with some machines of the domain. With the others, an error message appears and say : "myadress.com: rshd: 0826-826 The host name for your address... (2 Replies)
Discussion started by: dfrangidis
2 Replies

10. UNIX for Dummies Questions & Answers

rlogin & telnet

hi what is the main difference between rlogin and telnet? Or they are synonymous cheers (13 Replies)
Discussion started by: g-e-n-o
13 Replies
Login or Register to Ask a Question