Sftp connection break on Gedit and Nautilus
Hi, I use Gnome Gedit to edit php and css files on my sftp server. Do you know how to avoid that the sftp connection break?
Best regards, Gabriel
Hi, I use Gnome Gedit to edit php and css files on my sftp server. Do you know how to avoid that the sftp connection break?
Best regards, Gabriel
Asked: 2015-06-03 15:39:04 -0500
Seen: 337 times
Last updated: Jun 03 '15
logout from server is connected via nautilus
nautilus / gedit - cannot open display
ftp transfer eats all my bandwidth
File sharing in a small local network
nautilus freezes when trying to view properties
seahorse-nautilus GnomeKeyring file encryption?
pkexec gedit not working after importing policykit
Wine not appearing in Open with Application list on fedora 19
Can you give an example? How often does it happen? Are you doing anything special for the connection to break etc?
Hi @bit4man I connect to a ssh with nautilus, then I open a php file with gedit. After a while I can't save. If I reconnect on nautilus I can save again
Check your ssh connection timeout. Servers and routers will automatically terminate sessions if they are idle too long. You can partly fix it by setting the TCPKeepAlive in the sshd_config file, and if your router/NAT is the one messing with the connection, you may tweak the ClientAliveInterval etc. parameters too. This all assumes you have access to the server. If you don't, a "cheap" solution is to have a simple cron job that every 5 minutes or so sends a small file to the host, and then delete it again :)
Hi @bit4man I edited the file
/etc/ssh/sshd_config
and uncommentTCPKeepAlive yes
. Now I not receive error message, but after a while Gedit can't save (takes infinite time trying save the file).