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?
Added -vvv:
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
-vvv
switches). It will give you the clue. – Jakuje Feb 25 '16 at 12:30