vscode免密登录需要更改authorized_keys的权限
按照 这个文章 操作了,还是 ssh 不过去,必须要你输密码
原来是 权限问题
参考:https://www.jianshu.com/p/7cca6cc9d35a
为了确保连接成功,请保证以下文件权限正确:
[root@host .ssh]$ chmod 600 authorized_keys
[root@host .ssh]$ chmod 700 ~/.ssh
就能 直接 链接了:
ssh [email protected] -i .ssh/id_rsa
共有 0 条评论