自訂 .ssh/config 檔案

用下列檔案之後, 就可以直接 ssh xxx 機器短名 然後會帶入你要的帳號

# cat .ssh/config
Host xxx
Hostname xxx.liho.tw
User root
Host yyy
Hostname yyy.liho.tw
User root
Host zzz
Hostname zzz.liho.tw
User root

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.