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:

box1: User alexk Hostname boxwithlongname
and on the commandline:
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.


All dogma is stupid.

Replies are listed 'Best First'.
Re^2: ssh wrapper
by teamster_jr (Curate) on Mar 28, 2006 at 10:33 UTC
    yep, that works.
    although i don't think it would do:
    box[\d] -> boxwithlongname[\d].
    (it ain't no big thing :) ) a