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

I'm talking about the client. I would like any SSH connection (including those done through SCP and gvfs, if possible) to use the option ServerAliveInterval=30

Is there somewhere that I can push this option to globally change how SSH connections are made?

share|improve this question
up vote 3 down vote accepted

Aha. Well I just found /etc/ssh/ssh_config where I can put global settings. I've added

ServerAliveInterval 30

I'm not sure if this is going to change how gvfs and scp work though.

share|improve this answer
It should, as everything that uses SSH presumably calls the same code. – Scott Severance Dec 21 '11 at 14:01
That's quite a presumption! I'll have a go at setting an option that should break ssh connection globally (later - have to work right now) and will update the answer to see if it does affect gvfs et al. – Oli Dec 21 '11 at 15:00

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.