4

This is just a quick note that I want to share with others. It is about the problem that I encountered with my office machine. It was hanging continuously when ssh mount was used. The main problem is, as I assumed, the termination of ssh session, which caused the sshfs not to respond.

The solution for this issue is the ServerAliveInterval 60 directive in /etc/ssh/ssh_config file.

Hope this someone help!

2
  • Please split your solution into an answer by clicking the ~"Answer your own question" below.
    – Oli
    Oct 25, 2013 at 10:42
  • I don't understand why is the negative thumb. This is the problem which may occur on any default setup of e.g. Linux Mint or any *buntu. Oct 26, 2013 at 11:20

1 Answer 1

5

Solution for the above problem is to fire the terminal and enter

sudo nano /etc/ssh/ssh_config

Add at the end of the file:

ServerAliveInterval 60

Save and exit. Restart ssh with

sudo service ssh restart
2
  • 2
    shoud I write this on client or on server?
    – Tebe
    Jun 20, 2016 at 20:28
  • on a client machine Nov 25, 2017 at 14:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .