vscode remote-ssh 免密

细节细节

管理员身份打开power-shell

执行ssh-keygen, 获取 秘钥对

公钥复制到linux机器, cat id_rsa.pub >> ~/.ssh/authorized_keys

vscode ssh config file:

Host 10.0.11.13
    HostName 10.0.11.13
    User root
    IdentityFile C:\Users\<YourName>\.ssh\id_rsa.priv    // 私钥路径
 
失败了, 点detail 查看原因

 

posted @ 2023-07-24 14:54  voh99800  阅读(5)  评论(0编辑  收藏  举报