Multiple entry in .ssh/config file
2014-10-24
111 words
1 min read
Here is a link to one post on ssh config file.
However, if you want entries for lot of servers with their IPs or names, then it could be cumbersome to add all the entries in the .ssh/config file. So, here is a shortcut notation:
Host 1 2 3 4 5 6 Hostname 192.168.1.%h User Ciphers arcfour where '%h' denotes the IP that you use in the ssh command. The following escape character substitutions will be performed: ‘%d’ (local user's home directory), ‘%h’ (remote host name), ‘%l’ (local host name), ‘%n’ (host name as provided on the command line), ‘%p’ (remote port), ‘%r’ (remote user name) or ‘%u’ (local user name).
Related Articles:
- 2014/09/01 Debuggging bash cron scripts.
- 2014/01/06 cgroups – use to control your cpu and memory
- 2013/06/04 ssmtp configuration and installation – raspberry pi.
- 2013/04/19 sendmail or sending mail
- 2013/03/16 dnsmasq not starting from NetworkManager with SELinux enabled.
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.