Could anyone pls tell me what's the Putty KeepAlive command, use to prevent the putty disconnected from server.thanks
Just issue a while do done on the server
Sorry i'm not sure what u mean?
Just type "ed" while not in use. This will prevent the session from getting disconnected.
Use Ctrl-D to come out of the "ed" command typed earlier.
or type this
while date
do
sleep 30
done
where i suppose to typ>? you mean in the server huh?
i have found one command, ssh -2 -o 'TCPKeepAlive=yes' username@hostname
but can't work....
Hi,
The following command may solve the purpose for you.
export TMOUT=0
Thanks
Penchal
Thanks, i'll try it out. My purpose is when i login putty, i want it to be Alive at all time even i didnt use it for a while period, because putty will disconnected from server after 30mins when i;ve login
Ask your sys admin about this, but you can override the default TMOUT by setting/exporting one in your login script (.profile/.login/...).
This will save you from remembering to type the "export TMOUT=0" command on every login.
Also, remember to lock your screen when not in front of your workstation.