Home
Ssh
Install public key on remote host
Automatically install your public key to the remote host (this actually is included in the openssh package):
ssh-copy-id user@remotehost
Disable ssh timeout
Server side:
Works on Debian (confirmed on 04-apr-2012). On the server, edit /etc/ssh/sshd_config so that it contains the following lines:
ClientAliveInterval 30
TCPKeepAlive yes
ClientAliveCountMax 99999
Restart ssh:
/etc/init.d/ssh restart
Client side
The server side tweak should be suffient in itself. Apply this client-side fix only if you do not have access to root privileges on the remote machine. On the local machine, edit /etc/ssh/ssh_config so that it contains the following line:
ServerAliveInterval 100
External link
Author: Mark Carter
Created: 04-Apr-2012
Updated: 04-Apr-2012