3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vscode remote-sshで[Failed to set up socket for dynamic port forward to remote port 35653: Socket closed. Is the remote port correct?]的なエラーが出た場合

Posted at

vscode remote ssh

Remote - SSH

すごく便利で、通常のsshd設定ではこける事無くサクッと繋がる

謎のエラー

Show Log

Screen Shot 2020-03-31 at 19.27.29.png

こんな感じで表示される

Failed to set up socket for dynamic port forward to remote port 35653: Socket closed. Is the remote port correct?

sshd側のログ sudo tail -f /var/log/auth.log

refused local port forward: originator 127.0.0.1 port 65256, target 127.0.0.1 port 35653

原因

sshをガチガチにしようとして、この辺をnoにしてないか確認

/etc/ssh/sshd_config
AllowTcpForwarding no
AllowStreamLocalForwarding no
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?