vim /etc/ssh/sshd_config
打开
AllowAgentForwarding yes
AllowTcpForwarding yes
重启sshd服务
systemctl restart sshd
删除生成的vscode文件
rm -rf ~/.vscode-server/
重新ssh连接
vim /etc/ssh/sshd_config
打开
AllowAgentForwarding yes
AllowTcpForwarding yes
重启sshd服务
systemctl restart sshd
删除生成的vscode文件
rm -rf ~/.vscode-server/
重新ssh连接