vscode remote ssh 远程开发免密登录

在Windows上生成SSH公钥

C:\Users\china>ssh-keygen
...
Your identification has been saved in C:\Users\china/.ssh/id_rsa.
Your public key has been saved in C:\Users\china/.ssh/id_rsa.pub.
...

复制到Linux远端文件中

~/.ssh/authorized_keys

推荐阅读更多精彩内容