LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   configure terminal to send keepalives for ssh (https://www.linuxquestions.org/questions/linux-newbie-8/configure-terminal-to-send-keepalives-for-ssh-304725/)

naijaguy 03-22-2005 11:15 AM

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...

Technoslave 03-22-2005 12:41 PM

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

naijaguy 03-22-2005 01:59 PM

Sorry, but where do you put that last line?

Thanks...

Technoslave 03-22-2005 04:40 PM

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.


All times are GMT -5. The time now is 05:04 AM.