- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SO_KEEPALIVE: Invalid argument
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
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
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-09-2007 07:24 AM
тАО10-09-2007 07:24 AM
sshd[11628]: error: setsockopt SO_KEEPALIVE: Invalid argument
I don't see in the /opt/ssh/etc/sshd_config file where this parameter is even set ??
What do I need to do ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 07:27 AM
тАО10-09-2007 07:27 AM
Re: SO_KEEPALIVE: Invalid argument
ndd -h |grep -i keepalive
tcp_keepalive_detached_interval - Send keepalive probes for detached TCP
tcp_keepalive_interval - Interval for sending keepalive probes
tcp_keepalives_kill - Types of keep-alive probe to use
ndd -get /dev/tcp tcp_keepalive_detached_interval
120000
ndd -get /dev/tcp tcp_keepalive_interval
900000
ndd -get /dev/tcp tcp_keepalives_kill
1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 07:31 AM
тАО10-09-2007 07:31 AM
Re: SO_KEEPALIVE: Invalid argument
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.50.003, HP-UX Secure Shell version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 07:36 AM
тАО10-09-2007 07:36 AM
Solutionhttp://www.hummingbird.com/support/nc/issues/con1003215.html?cks=y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 08:01 AM
тАО10-09-2007 08:01 AM
Re: SO_KEEPALIVE: Invalid argument
it should be listed as TCPKeepAlive in the sshd config file?
http://docs.hp.com/en/T1471-90015/ch01s14.html
if you find it then change this to value to no
if this doesnt help post back with os version and more info
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 08:04 AM
тАО10-09-2007 08:04 AM
Re: SO_KEEPALIVE: Invalid argument
If it's from HP, review the release notes of that SSH version (should be available at docs.hp.com). There might be a recommendation to install some patches.
The error message is related to a setsockopt() system call. "man 2 setsockopt" for more information.
The "Invalid argument" error, or EINVAL, is described in the man page as follows:
"The level or optlen value is not valid; or optval is the NULL address; or the protocol connection has been released."
The words "level", "optlen" and "optval" refer to the arguments of the setsockopt() system call.
Note the last possible cause of the EINVAL error: "...or the protocol connection has been released."
My wild guess:
This might be caused by a port scan, possibly using some "stealthy" method: sshd receives something that initially looks like a new connection, but when sshd gets to the point of running setsockopt(), the connection is already gone.
If it was me, I'd like to set up a network sniffer to pick up the first few packets of each connection incoming to the sshd port of your server.
Then find out if the beginning of each connection looks like a standard TCP three-way handshake or something different: it might be that the "client" always aborts the connection in the earliest possible phase. If anomalous connections are found, you might want to look where they're coming from.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 08:06 AM
тАО10-09-2007 08:06 AM
Re: SO_KEEPALIVE: Invalid argument
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.50.003, HP-UX Secure Shell version
T1471AA A.04.50.003 HP-UX Secure Shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 08:21 AM
тАО10-09-2007 08:21 AM
Re: SO_KEEPALIVE: Invalid argument
you could also check if you are using this config file ?
/etc/ssh/sshd_config
http://unixhelp.ed.ac.uk/CGI/man-cgi?sshd_config+5
Also the release notes are here
http://www.docs.hp.com/en/internet.html#Secure%20Shell
have you just started getting these errors? have any changes been made to prompt them
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 10:56 AM
тАО10-09-2007 10:56 AM
Re: SO_KEEPALIVE: Invalid argument
T1471AA A.04.50.003 HP-UX Secure Shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2007 07:54 PM
тАО10-09-2007 07:54 PM
Re: SO_KEEPALIVE: Invalid argument
well even that version is slightly out of date
newer version is here
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
but as always, if you install newer versions of software make sure you have all the updated patches aswell installed from the patch database
Andy