user480200
user480200

Reputation: 1

Reconnect a timed-out session

When I do an ssh connection, after a while, the connection time-out and my term freeze.

I know Enter + ~ + . to unfreeze it. But is there another key sequence to reconnect instead ?

Thanks

Upvotes: 0

Views: 294

Answers (1)

dogbane
dogbane

Reputation: 274738

You can add the following to your ~/.ssh/config file:

Host *
  ServerAliveInterval 60

This will make the client send a signal to the server every minute to tell it that it is alive, so the server won't close the connection.

Upvotes: 1

Related Questions