VS Code Remote Development SSH 远程连接出错[解决办法]

/ 0评 / 0

方法 一

编辑远程ssh配置

vim /etc/ssh/sshd_config
#开启下面2个又或者直接写入
AllowTcpForwarding yes
PermitOpen any

然后重启

systemctl restart sshd

方法 二

cd /root
ls -a
rm -rf .vscode-server

目前正常使用!

发表评论

邮箱地址不会被公开。 必填项已用*标注