- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Detect SFTP hang
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
06-02-2010 10:40 AM
06-02-2010 10:40 AM
Detect SFTP hang
Someone in our organization made a change that incapacitated sftp. We could ping the target server but connection attempts through scp, ssh and sftp would just hang indefinitely.
Is there a way we can configure ssh clients to exit with a non zero return code after a specific period of inactivity?
Thanks
RayB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2010 10:42 AM
06-02-2010 10:42 AM
Re: Detect SFTP hang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2010 10:48 AM
06-02-2010 10:48 AM
Re: Detect SFTP hang
> Someone in our organization made a change that incapacitated sftp
Was that deliberate? Is this the way you intend to leave the configuration? What exactly was done and to what goal?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2010 11:03 AM
06-02-2010 11:03 AM
Re: Detect SFTP hang
Do you have 'TCPKeepAlive' enabled in your 'sshd_config' file?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2010 11:19 AM
06-02-2010 11:19 AM
Re: Detect SFTP hang
Someone at corporate network group made a planned routing change with an unconfirmed firewall change during business hours.
The issue has been resolved but I'm just trying to secure our batch application(s) in case this happens again.
If this had gone undetected, our batch stream would have been delayed extensively by the hang until the backup failed to start. Someone would have gotten paged in the middle of the night etc etc etc.
As for the debug listing:
$ sftp -vvv
Connecting to wellness...
OpenSSH_4.0p1, OpenSSL 0.9.7m 23 Feb 2007
debug1: Reading configuration data /usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to
debug1: Connection established.
debug3: Not a RSA1 key file /batch/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /batch/.ssh/id_rsa type 1
debug3: Not a RSA1 key file /batch/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /batch/.ssh/id_dsa type 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2010 11:34 AM
06-02-2010 11:34 AM
Re: Detect SFTP hang
$ grep Alive ssh*config
ssh_config:#ServerAliveInterval 15
ssh_config:#ServerAliveCountMax 3
sshd_config:#TCPKeepAlive yes
sshd_config:#ClientAliveInterval 0
sshd_config:#ClientAliveInterval 15
sshd_config:ClientAliveInterval 45
sshd_config:ClientAliveCountMax 3
$
RayB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2010 11:49 AM
06-02-2010 11:49 AM