I am using the latest version of FileZilla (184.108.40.206) to connect to a fully up-to-date Ubuntu Server 14.10 with OpenSSH. When I SSH into the server using PuTTY, the connection never times out. I stay connected indefinitely and am not disconnected. When I SFTP in, however, I am disconnected after roughly five minutes or so of no activity. The specific message is
Disconnected from server.
The guides I have found (1 and 2, among others) say to add
ServerAliveInterval 60 to
/etc/ssh/ssh_config or to add
ClientAliveInterval 60 to
/etc/ssh/sshd_config. I tried both of these but neither has worked--I still receive the "Disconnected from server" message.
FileZilla has an option to keep FTP connections alive, and that would make things simple, but a) that option is in the FTP section (not the SFTP section), and b) directly underneath the option it says that proper servers do not require that option to be set and to contact the server admin if the option is necessary.
What do I need to do to set my server so that SFTP connections are indefinitely kept alive?
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014