linux ssh - ssh简化连接

【基本介绍】
有些服务器经常连接,但是又需要频繁输入密码。这里介绍一些方便的方法。

【方法介绍】
1. shell aliases
在.bashrc里面添加相应的alias


2. ~/.ssh/config
[root@deploy ~]# cat .ssh/config 
Host 10.xx.xx.xx
        IdentityFile ~/.ssh/dena_amazon_rsa
[root@deploy ~]# ssh 10.xx.xx.xx
Last login: Wed Dec 10 14:07:52 2014 from 10.xx.xx.xx
[root@db16 ~]# exit


【参考引用】
http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/

猜你喜欢

转载自runpanda.iteye.com/blog/2164844