sudo apt-get install openssh-server
ssh出现permission denied (publickey)问题:
修改/etc/ssh/sshd-config文件.
将其中的PermitRootLogin no修改为yes
PubkeyAuthentication yes修改为no
AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉,
PasswordAuthentication no修改为yes就可以了。
重启sshd即可:service sshd restart
/etc/init.d/ssh restart
ssh permission denied (publickey)
猜你喜欢
转载自amspring.iteye.com/blog/2166606
今日推荐
周排行