LinuxQuestions.org
Register a domain and help support LQ
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 11-08-2003, 03:58 AM   #1
coolersites
LQ Newbie
 
Registered: May 2003
Location: Seattle,WA
Distribution: MDK10.1/CENTOS3.3
Posts: 19

Rep: Reputation: 0
Question How to keep a persistent ssh (konsole) connection?


This used to work for me, but now in my Mandrake 9.2 installation any SSH terminal connections I open (using whatever client - gnome-terminal,konsole,xterm,etc) the connection timesout after just a few minutes.

I used to be able to leave my ssh connections open all day and they never closed on me. Working on servers all day this is much nice than needing to relogin after switching windows for a few minutes..

Any body know the secret? I have searched high and low...

-Aaron
 
Old 11-08-2003, 01:56 PM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Presumably these SSH sessions are to other machines?

Is the connection passing over a dial on demand link or going through a NAT connection sharing system or a socks proxy?

A NAT will forget idle connections eventually. IIRC it's 15 minutes of inactivity by default on a linux NAT. A cheap router can handle a limited number of connections and will forget old ones if lots of new connections are opened.

It won't solve the problem but if you don't use it already you should have a look at the man page for screen.
 
Old 11-08-2003, 08:43 PM   #3
coolersites
LQ Newbie
 
Registered: May 2003
Location: Seattle,WA
Distribution: MDK10.1/CENTOS3.3
Posts: 19

Original Poster
Rep: Reputation: 0
You might onto something.. my old Linksys Router BEFSR41(or something like that) was when the SSH connections worked.. then I upgraded to a D-Link Wireless router --
Don't know yet if it's the answer.. but thanks for the leads..
 
Old 11-10-2003, 12:45 AM   #4
andyn
LQ Newbie
 
Registered: Apr 2001
Posts: 17

Rep: Reputation: 0
I just had a similar problem

make sure in your sshd_config file ( /etc/ssh/sshd_config in Red Hat)
that the Keep_alive is yes and not commented out

Andy
 
Old 11-10-2003, 04:00 PM   #5
coolersites
LQ Newbie
 
Registered: May 2003
Location: Seattle,WA
Distribution: MDK10.1/CENTOS3.3
Posts: 19

Original Poster
Rep: Reputation: 0
Turns out zaphodiv was right on. This is a problem with the d-link routers, and specifically the 614+.

Here is some good threads I found to work up temporary solutions. Really need to pound d-link on this one..

http://monkeygumbo.com/news/mt/mt-co...i?entry_id=450
http://probability.ca/jeff/comp/routerfix.html

-Aaron
 
  


Reply


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
ssh persistent processes c0uchm0nster Linux - Software 12 08-10-2007 08:04 PM
Implement persistent HTTP connection syseeker Programming 3 11-30-2005 02:18 AM
persistent ssh session apepost Linux - Networking 4 11-12-2005 01:16 AM
winXP ssh client with konsole like features? ElectronBlue General 5 12-23-2004 03:51 AM
sftp over a persistent connection (days/weeks) develops a memory leak da_kidd_er Linux - Software 1 12-22-2004 07:56 PM


All times are GMT -5. The time now is 09:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration