Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wanted to try out rsh (or rshell?) - the old, insecure way of logging in remotely.

On my Ubuntu 11.04, it turns out an rsh command exists:

$ which rsh
/usr/bin/rsh

... however, it turns out it is a mere symlink for ssh:

$ ls -la `which rsh`
lrwxrwxrwx 1 root root 21 2011-03-25 16:07 /usr/bin/rsh -> /etc/alternatives/rsh

$ ls -la $(readlink -f `which rsh`)
-rwxr-xr-x 1 root root 391580 2011-04-02 12:16 /usr/bin/ssh

Does this "old" rsh exist in Ubuntu repositories - and if so, how do I install it? Also, is rsh also split in client and server packages - and if so, which packages are those?

share|improve this question
1  
The package rsh-client looks promising –  Gerald Schneider Aug 28 '13 at 9:43
    
Many thanks, @GeraldSchneider - indeed, just installed it, and now rsh is not ssh anymore; and there is a rsh-server package too... Could you post this as an answer so I can accept it? –  sdaau Aug 28 '13 at 9:48

4 Answers 4

up vote 2 down vote accepted

You can install the package rsh-client.

Installing it should change the symlink to the newly installed rsh file, if not you can change it using update-alternatives.

share|improve this answer
    
Many thanks, @GeraldSchneider - cheers! –  sdaau Aug 28 '13 at 9:57
    
Check also the answer by @Oli for the alternative "redone" implementation of rsh. –  sdaau Aug 28 '13 at 10:52

There are two versions. Classic rsh-{server,client} and the newer rsh-redone-{server,client} (which still has no encryption but has support for things like IPv6).

$ apt-cache show ^rsh  # output is trimmed

Package: rsh-server
Description-en: server program for remote shell connections
 This package contains rexecd, rlogind and rshd.

Package: rsh-client
Description-en: client programs for remote shell connections
 This package contains rsh, rcp and rlogin.

Package: rsh-redone-client
Description-en: Reimplementation of rsh and rlogin
 Rsh-redone is a reimplementation of the remote shell clients and servers.
 It is written from the ground up to avoid the bugs found in the standard
 clients and servers. It also fully supports IPv6.
 .
 This package provides rsh and rlogin.

Package: rsh-redone-server
Description-en: Reimplementation of rshd and rlogind
 Rsh-redone is a reimplementation of the remote shell clients and servers.
 It is written from the ground up to avoid the bugs found in the standard
 clients and servers. It also fully supports IPv6.
 .
 This package provides rshd and rlogind.
share|improve this answer
    
Many thanks for that @Oli - would never have guessed there are two implementations of rsh; great to know this. Cheers! –  sdaau Aug 28 '13 at 10:52

Please try to install the following packages:

rsh-client - client programs for remote shell connections

rsh-server - server program for remote shell connections

Thomas

share|improve this answer
    
Many thanks for that \@tpf - @GeraldSchneider was faster in this case; cheers! –  sdaau Aug 28 '13 at 9:58

Look at the package rsh-redone-rsh.

It does the job.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.