LoginSignup
4
3

More than 5 years have passed since last update.

sshセッションがタイムアウト切断されないようにする

Posted at

SSHターミナルを介して日常業務を行う日、少し席を離した隙にタイムアウトすることはエンジニアであれば誰でも経験があるかと思います。接続コマンドにほんの少しの細工を加えるだけで、切断確定するまでの間延びしたフリーズタイムを回避できます。

以下そのコマンド例。

ssh -o TCPKeepAlive=yes -o ServerAliveInterval=60 USERNAME@HOSTNAME
4
3
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
4
3