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登录。须要作三件事情。
一、
关闭SElinux
# vi /etc/selinux/config
设置SELINUX=disabled
二、更改权限
$ chmod  600 ~/.ssh / authorized_keys
$ chmod 700 ~/.ssh
三、注销再登录

用ssh localhost再试试,OK。
linux

转帖,备用。忘了出处了
网络

相关文章
相关标签/搜索