vscode远程开发配置免密码登录

先配置好本地公钥到服务器中,centos可参考:https://www.sjfn.com/post/centos-configuration-key-login.html
其他Linux系统类似。

63626-s3k9ugav68.png

在Remote-SSH插件设置中选择路径带有.ssh的config文件
在需要配置密钥的Host下加上 IdentityFile "密钥文件地址"
例如

IdentityFile "C:\Users\yimi\.ssh\id_rsa"

44762-dkkeju0e7t.png

Sitemap · Rss

津ICP备2021004480号-3