1
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 1 year has passed since last update.

sshでトンネリングやプロキシを構築したとき "open failed: connect failed:" が出るときの対処法

Posted at

症状

  • sshでトンネリングやSOCKSプロキシを構築したがchannel 329: open failed: connect failed: open failed と吐いてたまに機能しなくなる

対処法

sshdの設定のMaxSessionsを超えてるのが原因。
/etc/ssh/sshd_configを開きコメントアウトされているMaxSessionsを探す。見つけたらコメントを外し適当な値を入れる。

Before:

#MaxSessions 10

After:

MaxSessions 40
1
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
1
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?