If I run:
sftp -oServerAliveInterval=10 server-2
Connection is established. But after increasing (decreasing) the value from 10 to 1:
sftp -oServerAliveInterval=1 server-2
I am unable to connect:
Connecting to server-2... Connection closed by 10.0.1.10 Couldn't read packet: Connection reset by peer
Any ideas why?
debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: id_rsa (0xxxxxxxxxxx) Connection to 10.0.1.10 timed out while waiting to read Couldn't read packet: Connection reset by peer