rssh

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 06 April 2024
Index Return to Main Contents

 

NAME

rssh - remote direct or interactive ssh connect

 

SYNOPSIS

edrc/bin/rssh [ -h ]

rssh [ -l ]

rssh-user@host [ -h ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

connect to a remote system using ssh(1).

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.

 

OPTIONS

-h
usage message.

-l
list past connections for selection.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

1
the rssh command has been aborted.

4
usage displayed.

 

FILES

$HOME/.rssh
remember user and host of last rssh connection of the invoking user.

/etc/passwd
user base.

/etc/shadow
user passwords.

 

EXAMPLES

1) create a new rssh connect variant

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 

 

SEE ALSO

edrcintro(1), ln(1), remote_shell(3), rl(1), ssh(1), ssh-exec(1), symlink(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

rssh was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2021 Christian Walther

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.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:54:17 GMT, August 28, 2024