Yahav Cohen
Yahav Cohen

Reputation: 21

SSH connection keep disconnecting when idle

When the ssh connection is idle I get client_loop: send disconnect: Boken pipe what can I do?

Upvotes: 1

Views: 925

Answers (1)

Yahav Cohen
Yahav Cohen

Reputation: 21

Create/edit the file ~/.ssh/config in your local computer. In the file paste the following and save.

Host *
 UseKeychain yes
 AddKeysToAgent yes
 ForwardAgent yes
 ServerAliveInterval 60
 ServerAliveCountMax 2

This will send keep-alive to the connected server and will not disconnect due to inactivity.

Upvotes: 1

Related Questions