4
3

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.

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?