vscode远程开发配置免密码登录
🕙2023-06-22
先配置好本地公钥到服务器中,centos可参考:https://www.sjfn.com/post/centos-configuration-key-login.html
其他Linux系统类似。
在Remote-SSH插件设置中选择路径带有.ssh的config文件
在需要配置密钥的Host下加上 IdentityFile "密钥文件地址"
例如
IdentityFile "C:\Users\yimi\.ssh\id_rsa"