Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: ssh wrapper

by tirwhan (Abbot)
on Mar 28, 2006 at 10:29 UTC ( [id://539666]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://539666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2025-05-23 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.