By haslamx
I made a new droplet today (Ubuntu 14.04 LAMP image) and I’m having some trouble with my SFTP connections. Whenever I connect via SFTP (using root) I always get disconnected after about 5 minutes of inactivity. The client becomes unresponsive for around 15 seconds and shows this error:
Network error: Software caused connection abort
This happens on both WinSCP and FileZilla with the exact same error message. I have not edited any configuration files on the droplet or installed anything else apart from phpmyadmin.
How can I stop my SFTP sessions from disconnecting so often?
Tried adding “ServerAliveInterval 60” to ssh_config and restarted the ssh service but it didn’t make any difference
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’ve fixed this by adding:
ClientAliveInterval 60 to etc/ssh/sshd_config ServerAliveInterval 60 to etc/ssh/ssh_config
Then restarting the ssh service. SFTP sessions are no longer timing out.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.