LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2009, 08:55 PM   #1
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283
Blog Entries: 11

Rep: Reputation: 41
Unhappy SSHFS dropping connection


I'm using sshfs to connect to my office computer from home.
To connect, I use:

Quote:
$ sshfs -p 8922 -o sshfs_sync -o reconnect dungeon:/media/data /home/xri/tables

Whenever I leave the connection alone for more than 3 min, the folders I had on the desktop are not longer accessible ("directory data does not exist").
However, the mount command still shows the remote mount as working.

So, what I have to do is:

Quote:
$ fusermount- u /home/xri/tables
$ sshfs -p 8922 -o sshfs_sync -o reconnect dungeon:/media/data /home/xri/tables

This never happens when I use sshfs 'at home', that is within my LAN. However, it does happen when I do that between my home and my office.

By the way,
  • while fish:// works on my LAN, it does not work when I try, on Konqueror,
    Quote:
    fish://xri@dungeon:9922
    In this case I get "The process for the fish://dungeon protocol died unexpectedly";
  • I can use ssh without a problem with key authentication.

Questions:
  1. Am I missing something important?
  2. Is there a better alternative?

Thanks for reading this.
 
Old 08-07-2009, 07:07 PM   #2
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
I fixed it.
For the the records, it was like this.
A possible reason for the different performance in the two different settings (ie within the local network vs. between computers across the Internet) is the presence of firewall between the computers in the second case. The firewall limits the communication and causes interruption of ssh.
The solution is to add, on the client's ssh config:

ServerAliveInterval number_in_seconds
ServerAliveCountMax times_unanswered_signals

For more details, man ssh. The keywords for googling are ssh keepalive.
 
  


Reply

Tags
ssh, sshfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wifi connection keeps dropping - please help! meglamanaic Linux - Wireless Networking 7 05-17-2007 10:40 PM
mysql connection keeps dropping nephish Linux - Networking 0 03-25-2006 10:34 PM
Dialup Connection Keeps Dropping WarlockofVirgo Linux - Networking 1 09-07-2004 04:42 PM
Connection keeps dropping slakmagik Linux - General 3 04-30-2003 01:26 PM
dropping connection estranged0877 Linux - Networking 2 04-01-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration