Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question
Please split your solution into an answer by clicking the ~"Answer your own question" below. – Oli Oct 25 '13 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. – Borivoje Petrovic Oct 26 '13 at 11:20

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
share|improve this answer
shoud I write this on client or on server? – Копать_Шо_я_нашел Jun 20 at 20:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.