Find the answer to your Linux question:
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By br0ken
Hello everyone, I am having a small problem. When I SSH to my home box from work, everything is fine. But if there is about 5 minutes of inactivity, the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Location
    Baton Rouge, LA
    Posts
    37

    SSH timeout


    Hello everyone,
    I am having a small problem. When I SSH to my home box from work, everything is fine. But if there is about 5 minutes of inactivity, the connection dies. Control + C won't kill the SSH and bring me back to my local command line. I looked in the sshd_config file and nothing there seems to be what i am looking for. I am running Ubuntu 8.04 kernel 2.6.24-23-generic. Any help would be greatly appreciated.
    raduclona likes this.

  2. #2
    Just Joined!
    Join Date
    Aug 2014
    Posts
    1
    Quote Originally Posted by br0ken View Post
    Hello everyone,
    I am having a small problem. When I SSH to my home box from work, everything is fine. But if there is about 5 minutes of inactivity, the connection dies. Control + C won't kill the SSH and bring me back to my local command line. I looked in the sshd_config file and nothing there seems to be what i am looking for. I am running Ubuntu 8.04 kernel 2.6.24-23-generic. Any help would be greatly appreciated.

    edit /etc/ssh/ssh_config
    and add this maby to you works
    # echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time
    # ServerAliveInterval 5

  3. #3
    Just Joined!
    Join Date
    Jan 2013
    Location
    Debian Stable AMD-64 (Gnome 3)
    Posts
    77
    Use the verbose option to give us a better detail of the issue. What's the exact error you're seeing? "Connection timeout" usually meant your firewall is preventing access to the port its seeking.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •