CentOS 6.4配置无密码SSH
CentOS 6.4配置无密码SSH
CentOS 6.4配置无密码SSH
CentOS 6.4 对 网络管理相当严格。单纯的
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
命令没办法做到无密码SSH登陆。需要做三件事情。
1、关闭SElinux
# vi /etc/selinux/config
设置SELINUX=disabled
2、更改权限
$ chmod 600 ~/.ssh / authorized_keys
$ chmod 700 ~/.ssh
3、注销再登陆
用ssh localhost再试试,OK。
评论暂时关闭