in reply to ssh wrapper
IMO a better way to do this (because it will continue to work with scp/sftp, does not require starting up a perl process and you can add other options with little effort) is to use the ~/.ssh/config file. For example, put this into the file:
and on the commandline:box1: User alexk Hostname boxwithlongname
ssh box1
and it will do exactly the same thing. You can also add options such as compression, private key to use, X11 forwarding etc. in the same file, see man ssh_config for the details.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ssh wrapper
by teamster_jr (Curate) on Mar 28, 2006 at 10:33 UTC |