SSHトンネルが中断されます。

SSHトンネルが中断されます。

一部の記事にアクセスできるように、自宅で大学のコンピュータを介してSSHトンネルを使用しようとしています。

どちらのマシンもUbuntu 11.04を実行しています。大学の機械が動いていたopenssh-server

自宅では、次のガイドラインに従ってください。

  1. SSHセッションを開きます。

    ssh -D 9999 -C user@my_addr.com 
    
  2. 9999次に、ポートでSOCKS5接続を使用するようにFirefoxを設定しましたlocalhost

これはしばらくの間動作します。その後、突然接続が切断され、端末が停止します。

私がここで何を見逃しているのでしょうか?

ベストアンサー1

設定を試すことができますクライアントアクティビティ間隔そして生きているクライアントの最大数sshd設定ファイルの変数を自分に合った値に変更してください。

マニュアルから:

ClientAliveInterval 

Sets a timeout interval in seconds after which if no data has been received
from the client, secshd will send a message through the encrypted channel 
to request a response from the client.
The default is 0, indicating that these messages will not be sent to the 
client. This option applies to protocol version 2 only.

おすすめ記事