Win10配置ssh密钥免密连接Linux服务器

Win10配置ssh密钥免密连接Linux服务器

如果配置完公钥不起作用,可能是文件权限问题。两种解决办法(ssh免密登录,各种权限设置都无效的解决办法!):
1、修改文件权限,麻烦但安全
2、修改ssh 的StrictModes

sudo vi /etc/ssh/sshd_config

找到

#StrictModes yes

改成

StrictModes no

#重启ssh服务
sudo service sshd restart

你可能感兴趣的:(Win10配置ssh密钥免密连接Linux服务器)