Re: regarding rsh command execution

Ajai Khattri <[email protected]> Sun, 11 May 2003 01:52:55 -0400
Newsgroups gmane.linux.redhat.release.guinness
Message-ID <[email protected]>
On Sat, May 10, 2003 at 10:28:50PM -0700, vankam janardhan wrote:

> i need  'rsh' command to be executed successfully on the remote machine as well as on the local machine also.i am using redhat linux 6.2

Why not use ssh instead? More secure and easier with public keys.

> for example if i give the command 
>  
> $rsh 172.31.63.32 -l user ls
>  
> where ip address is the local machine.i got the fallowing error
>  
> 172.31.63.32 : connection refused
> trying krb4 rsh.....
> 172.31.63.32 : connection refused
> trying normal rsh(/usr/bin/rsh)
> permission denied

rsh service isn't running perhaps... use ssh.

> i want to execute every command like rsh,rcp,telnet,ftp,exec,rexec etc on remote machine.in order to achive this what else modifications  i need to do?

Don't use rsh, rcp, telnet or rexec. These are all disabled on most modern
systems I have seen because they are notoriously insecure.

You can use ssh instead of rsh.
You can use scp instead of rcp.
Etc etc.

-- 
.jA
repoleveD \ .nimdA smetsyS