$ mkdir ~/.ssh $ chmod 700 ~/.ssh $ touch ~/.ssh/config
Host stg-web-srv HOSTNAME xxx.xxx.xxx.xxx USER yuu3 PORT 22 ServerAliveInterval 15 IDENTITYFILE /Users/kanehiroyuu/Desktop/doc/key/example_prod_srv_id_rsa Host prod-web-srv HOSTNAME yyy.yyy.yyy.yyy USER yuu3 PORT 22 ServerAliveInterval 15 IDENTITYFILE /Users/kanehiroyuu/Desktop/doc/key/example_prod_srv_id_rsa
接続
$ ssh stg-web-srv