报错:
Could not fetch remote environment
Unable to write to Folder Settings because no resource is provided.
Failed to connect to the remote extension host server (Error: Time limit reached)
解决方法:
修改远程服务器的sshd_config文件
# vim /etc/ssh/sshd_config
将
AllowTcpForwarding no
AllowAgentForwarding no
替换为
AllowTcpForwarding yes
AllowAgentForwarding yes
保存后重启sshd服务
# systemctl restart sshd
再次使用vscode连接成功。