rssh [ -l ]
rssh-user@host [ -h ]
When invoking the rssh command the remote user and the remote host is queried interactively, where the last chosen user- and host-name is provided as default input.
When a symlink to the rssh command in the format rssh-user@host is created, the newly created command variant will connect directly to the host with the user and the remote system will query for the password.
The main purpose for this is to create a pseudo user (without password) and add the command variant rssh-user@host to the shell field of the /etc/password field to allow to use a local system to be used as a direct terminal to a remote system, as for example:
/etc/passwd:
: mars:x:1291:1291:mars login terminal:/tmp:/home/fred/bin/rssh-fred@mars :
/etc/shadow:
: mars::18715:0:99999:7::: :
This would allow you to enter mars as login on the local system that will connect to the remote host with name mars where the login password of the user with name fred will be queried.
This creates a new rssh command variant on host earth to directly connect to the host mars using the remote user-name fred.
[ /home/fred ] [ fred@earth ][bash]: ln -s ~edrc/bin/rssh ~fred/bin/rssh-fred@mars
or:
[ /home/fred ] [ fred@earth ][bash]: symlink ~edrc/bin/rssh ~fred/bin/rssh-fred@mars
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.