ssh配置公钥连接仍需要输入密码

公钥配置:https://www.cnblogs.com/Hi-blog/p/9482418.html

 

重启ssh(Ubuntu):service ssh restart

以此来应用对sshd_config的修改

 

修改文件权限:https://blog.csdn.net/anque1234/article/details/101423315?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param

//用户权限

chmod 700 /home/username

//.ssh文件夹权限

chmod 700 ~/.ssh/

// ~/.ssh/authorized_keys 文件权限

chmod 600 ~/.ssh/authorized_keys

posted @ 2020-10-12 16:13  Junzhao  阅读(903)  评论(0编辑  收藏  举报