linux 主机免验证登录
摘要:
1.ssh-keygen -t [rsa|dsa],将会生成密钥文件和私钥文件 id_rsa,id_rsa.pub或id_dsa,id_dsa.pub2.scp -p port ~/.ssh/id_rsa.pubuser@serverip:~/3.sshserverip4.cat id_rsa.pub >> ~/.ssh/authorized_keys5.非常关键的一步设置authorized_keys权限$ chmod 600 authorized_keys设置.ssh目录权限$ chmod 700 -R .ssh6.可选(未配置ssh远程登陆需配置)vim /etc/ssh/s 阅读全文
posted @ 2014-03-01 21:42 菜鸟的春天 阅读(553) 评论(0) 推荐(0) 编辑