LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2005, 11:15 AM   #1
naijaguy
Member
 
Registered: Aug 2004
Posts: 88

Rep: Reputation: 15
configure terminal to send keepalives for ssh


On my Windows laptop, I can easily configure putty to send keepalives for ssh. However, on this Red Hat box, I'm trying to figure out how to configure the Terminal to do this so I don't keep getting timed out by the server I'm connecting to. Using the Edit menu, I can change the profile to maintain more scrollback, but there's nothing about keepalives...
 
Old 03-22-2005, 12:41 PM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
If you have access to the server you're connecting to ( to change things, etc. ), add this line in your /etc/sysctl.conf

# Have comp send out keepalive every 15 minutes
net.ipv4.tcp_keepalive_time = 900

I kept getting dropped too, this fixed it.

Likewise, you'll have to do an

echo 900 > /proc/sys/net/ipv4/tcp_keepalive_time
 
Old 03-22-2005, 01:59 PM   #3
naijaguy
Member
 
Registered: Aug 2004
Posts: 88

Original Poster
Rep: Reputation: 15
Sorry, but where do you put that last line?

Thanks...
 
Old 03-22-2005, 04:40 PM   #4
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
That's a command line, the first one where you put it in the sysctl.conf file is for when the computer reboots. With something like this you don't reboot, you just issue the echo command.
 
  


Reply



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
configure RHEL4 server to send mail ? gosh Linux - Software 4 10-18-2005 12:48 PM
How do I send emails by PHP on FC3 (and configure the MTA)? murr4y Linux - Newbie 3 09-01-2005 04:20 PM
GRE keepalives. How can a SUSE 9.0 Linux box send GRE keepalives? dlef Linux - Networking 1 06-28-2005 12:00 PM
Flooded with keepalives lantern Linux - Networking 2 03-31-2005 08:27 AM
how do I configure sendmail to be able to send mail outside my network dkscomps Linux - Networking 9 07-04-2004 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 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
Open Source Consulting | Domain Registration