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

2020年09月05日 52点热度 0人点赞 0条评论
文章导航
[隐藏]
  • 错误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

目前正常使用!

Sandyliao

保持飢渴好吃的性格、維持好攝之徒的愛好、繼續在三流的技術下活著!

文章评论

您需要 登录 之后才可以评论