SSH aliases
Oct. 27th, 2009 03:08 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
SSH configuration allows a user to introduce aliases for user@host names both for ssh(1) and scp(1). In order to do that, the ~/.ssh/config file can be appended by the lines similar to the following:
Host js HostName jsinc.com User john Host tom HostName tommy.supergnu.org User tommyThis way, to copy a file /tmp/xml to John's machine as John himself, and then log in Tommy's host using the name `some1' (not the default user name `tommy'), one could just type `scp /tmp/xml js:/tmp', then `ssh some1@tom'.