- 错误log:
[06:52:59.242] [Forwarding server 57546] Got connection 1
[06:52:59.242] [Forwarding server 57546] Got connection 2
[06:52:59.252] > channel 3: open failed: administratively prohibited: open failed
[06:52:59.252] >
[06:52:59.253] Failed to set up socket for dynamic port forward to remote port 41075: Socket closed. Is the remote port correct? -
Could not establish connection to "xxxx". Connecting with SSH timed out.
方法 一
编辑远程ssh配置
vim /etc/ssh/sshd_config
#开启下面2个又或者直接写入
AllowTcpForwarding yes
PermitOpen any
然后重启
systemctl restart sshd
方法 二
cd /root
ls -a
rm -rf .vscode-server
目前正常使用!