- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH timeuot?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 12:05 AM
09-12-2008 12:05 AM
SSH timeuot?
I have a machine that disconnects the cilent if it´s inactive for some minutes. This is not tha case on any of our other servers. I think this server is configured to be more secure than the others, but i can not find any difference in the config files. This is the file i have checked: /opt/sshd/etc/sshd_config Is there any other way to config the sshd service? With any other files? How do i know which config files are used on this system?
Br
Patrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 12:11 AM
09-12-2008 12:11 AM
Re: SSH timeuot?
openssh seems to have this option-LoginGraceTime for timeouts. it's configured insshd_config. man sshd_config for details.
Also you can check if timeout happens for telnet or not or only for ssh. also check TMOUT variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 12:22 AM
09-12-2008 12:22 AM
Re: SSH timeuot?
ps -ef|grep sshd
root 823 1 0 Jun 29 ? 10:13 /opt/ssh/sbin/sshd
root 5232 4415 1 10:21:50 pts/0 0:00 grep sshd
root 4376 823 0 10:18:14 ? 0:00 sshd: root@pts/0
So it should be /opt/ssh/etc/sshd_config file that is used? Almost all lines in this file starts with #, it is not used?
Br
Patrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 12:27 AM
09-12-2008 12:27 AM
Re: SSH timeuot?
TCPKeepAlive
Use this directive to control the flow of TCP keep-alive messages. If keep-alive messages are sent, the connection terminates, or one of the hosts crashes, this directive prevents infinitely hanging sessions.
However, if keep-alive messages are not sent, sessions can hang indefinitely on the server, resulting in ghost users and large consumption of server resources.
The default setting is YES.
For example:
TCPKeepAlive YES
http://docs.hp.com/en/5991-7493/apas02.html
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 01:21 AM
09-12-2008 01:21 AM
Re: SSH timeuot?
it wont time out ur ssh session.
TCPkeepalive yes is another option in sshd_config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 01:59 AM
09-12-2008 01:59 AM
Re: SSH timeuot?
You can try this
$ $(UNIX95= ps -C sshd -o ppid= -o args=|awk '$1==1{print$2}') -h 2>&1|grep -- -f
-f file Configuration file (default /opt/ssh/etc/sshd_config)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 02:15 AM
09-12-2008 02:15 AM
Re: SSH timeuot?
When i compare these two systems, i can not find any differences in the config files. I do not know why the other system keeps timing out. This is from config file:
#TCPKeepAlive yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#MaxStartups 10
and i can not find any TMOUT= in .profile.
These settings are the same on both systems.
Br
Patrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 02:51 AM
09-12-2008 02:51 AM
Re: SSH timeuot?
u can manually write
export TMOUNT=0
It works.