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...
|
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 |
Sorry, but where do you put that last line?
Thanks... |
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. |