Linux ssh黄金参数

1 Linux ssh黄金参数
2 命令:
3 ssh -o ConnectTimeout=1 -o ConnectionAttempts=1 -o PasswordAuthentication=no -o StrictHostKeyChecking=no cp01-yxtocp048.vm -l root -C echo hello
4 ConnectTimeout:超时时间
5 ConnectionAttempts:尝试次数
6 PasswordAuthentication=no:不输入密码访问
7 StrictHostKeyChecking=no:首次访问,不必输入yes,自动确定将机器加入known_hosts

 

posted @ 2014-07-06 22:10  随风.Geek  阅读(542)  评论(0编辑  收藏  举报