LoginSignup
0
2

More than 5 years have passed since last update.

EC2にSSH接続しててすぐに切れちゃってキレちゃった時のメモ

Posted at

.ssh/configに↓を追加すればOKです。
(スリープさせてしまうと切れてしまいますが。。)

.ssh/config
Host magento-dev
  HostName 【ホスト名】
  User 【ユーザー名】
  Port 22
  IdentityFile ~/.ssh/【SSHキー】
  ServerAliveInterval 100 # ←追加
  TCPKeepAlive yes               # ←追加
0
2
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
0
2