Disable SSH timeout
http://www.techrecipes.net/linux/disable-ssh-timeout.html
By default, most SSH servers are configured to forcibly disconnect inactive or idle clients, or actually those with no network activity. This is not good for some people especially if one is setting up a (reverse) tunnel to the server where the tunnel should remain established whenever they need it.
There are 2 methods to overcome this problem,
1) not to stay idle or by keeping the network activity busy, and
2) if you have root access to the server, change the SSHd configuration at the server.
How can the network be kept busy while you are not attending the session? The trick is to run any program that keep updating the screen, such as mtr or top. The program should generate some network activity, and keep the session active and connected. Use the program screen to create virtual terminals where one terminal is dedicated to the program mtr or top.
If you have root access to the server, you might want to just change the SSHd configuration file. To do this, edit the file /etc/ssh/sshd_config and change the following options as in the example below;
TCPKeepAlive yes ClientAliveInterval 30 ClientAliveCountMax 99999
Don’t forget to restart the SSH server afterwards with the following command;
# /etc/init.d/sshd restart
Subscribe to:
Post Comments (Atom)
3 comments:
股票教學 股市分析 股市億萬贏家 股票軟體 股票行情 ferrari 賣車 賓士 lexus紙袋印刷 會場設計 貸款 票貼 二胎 包裝紙盒融資 工商融資 支票貼現 借款 法律事務所 馬桶不通 food forming patty machine boiling machine 化妝品包 裝 紙盒 breading machine vegetable machinePlastic Drinking Cups宜蘭民宿 宜蘭旅遊教育訓練 品質管理 Ohsas 18001
I'm Linux noob, but I think you should test you SSHD configuration before restart!!!
/usr/sbin/sshd -T
Otherwise you could lock yourself out!
台北日租套房
台北民宿
Taipei hostel
Taipei hotel
Taipei suite-apartment
Taipei rental
Post a Comment