- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh session hangs after successful execution o...
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
тАО01-03-2011 03:23 PM
тАО01-03-2011 03:23 PM
ssh session hangs after successful execution of remote command
I need your help in resolving hung ssh sessions in the hp 11.23 after successful execution of the remote command.
Below is the command used
/usr/bin/ssh -n user@hostname "date"
Below is the stack trace of the above process
-------------------------------- lwpid : 6371279 -------------------------------
0: 60000000c0392210 : _select_sys() + 0x30 (/usr/lib/hpux32/libc.so.1)
1: 60000000c03a6570 : _select() + 0xd0 (/usr/lib/hpux32/libc.so.1)
2: 00000000040d5b00 : client_register_global_confirm() + 0xca0 (/usr/bin/ssh)
3: 00000000040dbb40 : client_loop() + 0x1120 (/usr/bin/ssh)
4: 00000000040c5d00 : main() + 0x65d0 (/usr/bin/ssh)
5: 00000000040c4f70 : main() + 0x5840 (/usr/bin/ssh)
6: 60000000c003c7c0 : main_opd_entry() + 0x50 (/usr/lib/hpux32/dld.so)
Below are the details of the SSH version that we use
$ssh -V
OpenSSH_5.2p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8k 25 Mar 2009
HP-UX Secure Shell-A.05.20.014, HP-UX Secure Shell version
Any information to fix this is very much appreciated.
Thanks,
- Tags:
- SSL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 05:13 PM
тАО01-03-2011 05:13 PM
Re: ssh session hangs after successful execution of remote command
As per man page,
-n Redirects stdin from /dev/null
Why can't you try simply
ssh user@remothost "date" ??
or else use with -l option.
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 05:26 AM
тАО01-04-2011 05:26 AM
Re: ssh session hangs after successful execution of remote command
Do you have one for the hostname side?
>Shibin: you are using wrong options.
>-n Redirects stdin from /dev/null
-n seems appropriate for a command like date(1) that takes no input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 08:56 AM
тАО01-04-2011 08:56 AM
Re: ssh session hangs after successful execution of remote command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 09:14 AM
тАО01-04-2011 09:14 AM
Re: ssh session hangs after successful execution of remote command
Good
===================
debug1: Sending command: date^M
debug2: channel 0: request exec confirm 1^M
debug2: fd 3 setting TCP_NODELAY^M
debug2: callback done^M
debug2: channel 0: open confirm rwindow 0 rmax 32768^M
debug2: channel 0: rcvd adjust 65536^M
debug2: channel_input_status_confirm: type 99 id 0^M
debug2: exec request accepted on channel 0^M
debug2: channel 0: read<=0 rfd 4 len 0^M
debug2: channel 0: read failed^M
debug2: channel 0: close_read^M
debug2: channel 0: input open -> drain^M
debug2: channel 0: ibuf empty^M
debug2: channel 0: send eof^M
debug2: channel 0: input drain -> closed^M
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0^M
debug2: channel 0: rcvd eof^M
debug2: channel 0: output open -> drain^M
debug2: channel 0: obuf empty^M
debug2: channel 0: close_write^M
debug2: channel 0: output drain -> closed^M
debug2: channel 0: rcvd close^M
debug3: channel 0: will not send data after close^M
debug2: channel 0: almost dead^M
debug2: channel 0: gc: notify user^M
debug2: channel 0: gc: user detached^M
debug2: channel 0: send close^M
debug2: channel 0: is dead^M
debug2: channel 0: garbage collecting^M
debug1: channel 0: free: client-session, nchannels 1^M
debug3: channel 0: status: The following connections are open:^M
Bad
===================
debug1: Sending command: date^M
debug2: channel 0: request exec confirm 1^M
debug2: fd 3 setting TCP_NODELAY^M
debug2: callback done^M
debug2: channel 0: open confirm rwindow 0 rmax 32768^M
debug2: channel 0: rcvd adjust 65536^M
debug2: channel_input_status_confirm: type 99 id 0^M
debug2: exec request accepted on channel 0^M
debug2: channel 0: read<=0 rfd 4 len 0^M
debug2: channel 0: read failed^M
debug2: channel 0: close_read^M
debug2: channel 0: input open -> drain^M
debug2: channel 0: ibuf empty^M
debug2: channel 0: send eof^M
debug2: channel 0: input drain -> closed^M
debug2: channel 0: rcvd eof^M
debug2: channel 0: output open -> drain^M
debug2: channel 0: obuf empty^M
debug2: channel 0: close_write^M
debug2: channel 0: output drain -> closed^M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 09:52 AM
тАО01-04-2011 09:52 AM
Re: ssh session hangs after successful execution of remote command
Just to be clear: have you verified you can actually run the date command on the remote box? it's not aliased to something else - something that may be looking for input?
Second: the ssh "hangs" typically appear when you're trying to run an interactive program (hence the first question) or an X11 gui such as sam. You can try running
ssh -i user@hostname date
to see if anything is displayed on the terminal. the -i tells ssh to set upa psuedo tty for command interaction.
Hope this helps.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 12:16 PM
тАО01-04-2011 12:16 PM
Re: ssh session hangs after successful execution of remote command
No sshd process hanging around?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 01:25 PM
тАО01-04-2011 01:25 PM
Re: ssh session hangs after successful execution of remote command
the sshd version we use in the local server is OpenSSH_5.2 and in remote server is OpenSSH_5.1
root 5522 24595 0 16:05:05 ? 0:00 sshd: netops [priv]
netops 5699 5522 0 16:05:06 ? 0:00 sshd: netops@notty
netops 5713 5699 3 16:05:06 ? 0:00
$ pstack 5699
attach: Permission denied
$ pstack 5713
pstat_getprocvm: Error 0
could not find (static?) executable, cant unwind
attach: Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 01:26 PM
тАО01-04-2011 01:26 PM
Re: ssh session hangs after successful execution of remote command
root 5522 24595 0 16:05:05 ? 0:00 sshd: netops [priv]
netops 5699 5522 0 16:05:06 ? 0:00 sshd: netops@notty
netops 5713 5699 3 16:05:06 ? 0:00
$ pstack 5699
attach: Permission denied
$ pstack 5713
pstat_getprocvm: Error 0
could not find (static?) executable, cant unwind
attach: Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2011 04:57 PM
тАО01-04-2011 04:57 PM