- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX TCP/IP (SSH) sessions cut after ~30minut...
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
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
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
тАО10-19-2005 06:23 AM
тАО10-19-2005 06:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 06:26 AM
тАО10-19-2005 06:26 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=966920
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 06:31 AM
тАО10-19-2005 06:31 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
if your clients are connecting from a windows PC using putty, here is the info from the putty faq:
The timeout value can't be set on per application or per session
basis. To increase the TCP timeout globally, you need to add the
following key to the registry
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP\MaxDataRetries
in Win95/98/ME (it must be DWORD in Win95, or String in Win98/ME),
Then set the key's value to something like 10. This will cause
Windows to try harder to keep connections alive instead of
abandoning them.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 06:57 AM
тАО10-19-2005 06:57 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
Sessions to Tru64 hosts on the same subnet don't timeout.
No firewall between me and the hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 07:00 AM
тАО10-19-2005 07:00 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
grep -v ^# /opt/ssh/etc/ssh_config
grep -v ^# /opt/ssh/etc/sshd_config
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 07:35 AM
тАО10-19-2005 07:35 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
Protocol 2
/opt/ssh/etc/sshd_config:
Protocol 2
PermitRootLogin no
StrictModes no
PubkeyAuthentication yes
KerberosAuthentication yes
X11Forwarding yes
X11UseLocalhost no
Subsystem sftp /opt/ssh/libexec/sftp-server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 07:36 AM
тАО10-19-2005 07:36 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 07:36 AM
тАО10-19-2005 07:36 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
Set the TMOUT value for the system. You can either add it in /etc/profile OR $HOME/.profile. If you add this in /etc/profile the time out value will be same for all users where as in $HOME/.profile , you can set different values for different users. The line to be added is,
export TMOUT=300
This will allow a 300 sec ( 5 mins) in activity and then the session will be disconnected.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 07:52 AM
тАО10-19-2005 07:52 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
echo $TMOUT
yields 0, it means that you do not have a timeout set and your session will not timeout due to OS imposition.
On the other hand I did not see anything special in your config files to force an ssh timeout neither.
can you connect to this system via telnet and see if that one as well times out in about the same lenght of inactivity.
I still suspect that you have a firewall between your clients and the server or another piece of software on the server that I can not know, killing the idle connections.
what ssh client are you using to connect ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 08:02 AM
тАО10-19-2005 08:02 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.6.1p2
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
I'll peck network guys again and try a few more experiments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 08:18 AM
тАО10-19-2005 08:18 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 09:54 AM
тАО10-19-2005 09:54 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
I can tell it is something server-side or network based because an idle ssh session:
Read from remote host XXX: Connection reset by peer
Connection to XXXX closed.
debug1: Transferred: stdin 0, stdout 0, stderr 86 bytes in 3610.8 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2005 10:12 AM
тАО10-19-2005 10:12 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2005 04:35 AM
тАО10-20-2005 04:35 AM
Re: HP-UX TCP/IP (SSH) sessions cut after ~30minutes of inactivity
If you know the sshd id of the sessions, you could also try taking a tusc trace of that pid on the UX server and see what system calls it makes after 30 minutes. Ditto for the user's shell. Connect, find the apropriate PIDs and fire-up some tusc commands while the connection sits idle. Then twiddle thumbs and wait.