trucnguyenlam / win-sshfs

Automatically exported from code.google.com/p/win-sshfs
0 stars 0 forks source link

Inaccessible/disconnects after certain time period #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Don't access the file system for a while (not sure how long)
2. Try to access the file system through editor or Windows Explorer
3.

What is the expected output? What do you see instead?
It should work normally as it does in the editor or Explorer.
Instead the editor or Explorer hangs and loading icon for mouse doesn't change 
for 30 seconds, then gives error that it's inaccessible.

What version of the product are you using?

win-sshfs: 0.0.1.5 (installed to C:\Program Files (x86)\win-sshfs)
Client OS: Windows 7 Professional 64-bit
Server OS: Linux Debian
Ssh server: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze5

Please provide any additional information below.

Original issue reported on code.google.com by davehin...@gmail.com on 14 Jan 2015 at 9:01

GoogleCodeExporter commented 9 years ago
Quick fix could be as simple as setting ServerAliveInterval on your servers 
/etc/ssh/sshd_config (as below example shows 60 seconds set) to avoid idle 
timeouts and the server kicking the client off. give it a try.

Host *
ForwardAgent yes
ServerAliveInterval 60
#   ForwardX11 no
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking no
#   IdentityFile ~/.ssh/identity

Original comment by djtrem...@gmail.com on 17 Jan 2015 at 10:46

GoogleCodeExporter commented 9 years ago
I don't have access to edit server config files as root.

Original comment by davehin...@gmail.com on 19 Jan 2015 at 8:22