在vscode添加remote ssh插件 输入 ssh 主机用户名@主机地址 -A 连接远程主机 ssh root@127.0.0.1 -A 参考:vscode 使用ssh进行远程开发 (remote-ssh)_vscode remote ssh-CSDN博客