<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssh session hangs after successful execution of remote command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733227#M531099</link>
    <description>Since the process is executed successfully in the remote server, I won't be able to get the stack trace for remote server process.</description>
    <pubDate>Tue, 04 Jan 2011 16:56:18 GMT</pubDate>
    <dc:creator>akm_1</dc:creator>
    <dc:date>2011-01-04T16:56:18Z</dc:date>
    <item>
      <title>ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733224#M531096</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I need your help in resolving hung ssh sessions in the hp 11.23 after successful execution of the remote command. &lt;BR /&gt;&lt;BR /&gt;Below is the command used &lt;BR /&gt;&lt;BR /&gt;/usr/bin/ssh -n user@hostname "date"&lt;BR /&gt;&lt;BR /&gt;Below is the stack trace of the above process&lt;BR /&gt;&lt;BR /&gt;--------------------------------  lwpid : 6371279   -------------------------------&lt;BR /&gt;&lt;BR /&gt; 0: 60000000c0392210 : _select_sys() + 0x30 (/usr/lib/hpux32/libc.so.1)&lt;BR /&gt; 1: 60000000c03a6570 : _select() + 0xd0 (/usr/lib/hpux32/libc.so.1)&lt;BR /&gt; 2: 00000000040d5b00 : client_register_global_confirm() + 0xca0 (/usr/bin/ssh)&lt;BR /&gt; 3: 00000000040dbb40 : client_loop() + 0x1120 (/usr/bin/ssh)&lt;BR /&gt; 4: 00000000040c5d00 : main() + 0x65d0 (/usr/bin/ssh)&lt;BR /&gt; 5: 00000000040c4f70 : main() + 0x5840 (/usr/bin/ssh)&lt;BR /&gt; 6: 60000000c003c7c0 : main_opd_entry() + 0x50 (/usr/lib/hpux32/dld.so)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Below are the details of the SSH version that we use&lt;BR /&gt;&lt;BR /&gt;$ssh -V&lt;BR /&gt;OpenSSH_5.2p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8k 25 Mar 2009&lt;BR /&gt;HP-UX Secure Shell-A.05.20.014, HP-UX Secure Shell version&lt;BR /&gt;&lt;BR /&gt;Any information to fix this is very much appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jan 2011 23:23:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733224#M531096</guid>
      <dc:creator>akm_1</dc:creator>
      <dc:date>2011-01-03T23:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733225#M531097</link>
      <description>I think, you are using wrong options.&lt;BR /&gt;&lt;BR /&gt;As per man page,&lt;BR /&gt;&lt;BR /&gt;-n   Redirects stdin from /dev/null&lt;BR /&gt;&lt;BR /&gt;Why can't you try simply &lt;BR /&gt;&lt;BR /&gt;ssh user@remothost "date"  ??&lt;BR /&gt;&lt;BR /&gt;or else use with -l option.</description>
      <pubDate>Tue, 04 Jan 2011 01:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733225#M531097</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-01-04T01:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733226#M531098</link>
      <description>&amp;gt;Below is the stack trace of the above process&lt;BR /&gt;&lt;BR /&gt;Do you have one for the hostname side?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Shibin: you are using wrong options.&lt;BR /&gt;&amp;gt;-n Redirects stdin from /dev/null&lt;BR /&gt;&lt;BR /&gt;-n seems appropriate for a command like date(1) that takes no input.</description>
      <pubDate>Tue, 04 Jan 2011 13:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733226#M531098</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-04T13:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733227#M531099</link>
      <description>Since the process is executed successfully in the remote server, I won't be able to get the stack trace for remote server process.</description>
      <pubDate>Tue, 04 Jan 2011 16:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733227#M531099</guid>
      <dc:creator>akm_1</dc:creator>
      <dc:date>2011-01-04T16:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733228#M531100</link>
      <description>I have placed the verbose log of both good and bad ssh. Looks like in the bad log, we are not receiving "rcvd close" from the remote server. Do you have any idea why we didn't receive "close" from remote?&lt;BR /&gt;&lt;BR /&gt;Good&lt;BR /&gt;===================&lt;BR /&gt;debug1: Sending command: date^M&lt;BR /&gt;debug2: channel 0: request exec confirm 1^M&lt;BR /&gt;debug2: fd 3 setting TCP_NODELAY^M&lt;BR /&gt;debug2: callback done^M&lt;BR /&gt;debug2: channel 0: open confirm rwindow 0 rmax 32768^M&lt;BR /&gt;debug2: channel 0: rcvd adjust 65536^M&lt;BR /&gt;debug2: channel_input_status_confirm: type 99 id 0^M&lt;BR /&gt;debug2: exec request accepted on channel 0^M&lt;BR /&gt;debug2: channel 0: read&amp;lt;=0 rfd 4 len 0^M&lt;BR /&gt;debug2: channel 0: read failed^M&lt;BR /&gt;debug2: channel 0: close_read^M&lt;BR /&gt;debug2: channel 0: input open -&amp;gt; drain^M&lt;BR /&gt;debug2: channel 0: ibuf empty^M&lt;BR /&gt;debug2: channel 0: send eof^M&lt;BR /&gt;debug2: channel 0: input drain -&amp;gt; closed^M&lt;BR /&gt;debug1: client_input_channel_req: channel 0 rtype exit-status reply 0^M&lt;BR /&gt;debug2: channel 0: rcvd eof^M&lt;BR /&gt;debug2: channel 0: output open -&amp;gt; drain^M&lt;BR /&gt;debug2: channel 0: obuf empty^M&lt;BR /&gt;debug2: channel 0: close_write^M&lt;BR /&gt;debug2: channel 0: output drain -&amp;gt; closed^M&lt;BR /&gt;debug2: channel 0: rcvd close^M&lt;BR /&gt;debug3: channel 0: will not send data after close^M&lt;BR /&gt;debug2: channel 0: almost dead^M&lt;BR /&gt;debug2: channel 0: gc: notify user^M&lt;BR /&gt;debug2: channel 0: gc: user detached^M&lt;BR /&gt;debug2: channel 0: send close^M&lt;BR /&gt;debug2: channel 0: is dead^M&lt;BR /&gt;debug2: channel 0: garbage collecting^M&lt;BR /&gt;debug1: channel 0: free: client-session, nchannels 1^M&lt;BR /&gt;debug3: channel 0: status: The following connections are open:^M&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bad&lt;BR /&gt;===================&lt;BR /&gt;debug1: Sending command: date^M&lt;BR /&gt;debug2: channel 0: request exec confirm 1^M&lt;BR /&gt;debug2: fd 3 setting TCP_NODELAY^M&lt;BR /&gt;debug2: callback done^M&lt;BR /&gt;debug2: channel 0: open confirm rwindow 0 rmax 32768^M&lt;BR /&gt;debug2: channel 0: rcvd adjust 65536^M&lt;BR /&gt;debug2: channel_input_status_confirm: type 99 id 0^M&lt;BR /&gt;debug2: exec request accepted on channel 0^M&lt;BR /&gt;debug2: channel 0: read&amp;lt;=0 rfd 4 len 0^M&lt;BR /&gt;debug2: channel 0: read failed^M&lt;BR /&gt;debug2: channel 0: close_read^M&lt;BR /&gt;debug2: channel 0: input open -&amp;gt; drain^M&lt;BR /&gt;debug2: channel 0: ibuf empty^M&lt;BR /&gt;debug2: channel 0: send eof^M&lt;BR /&gt;debug2: channel 0: input drain -&amp;gt; closed^M&lt;BR /&gt;debug2: channel 0: rcvd eof^M&lt;BR /&gt;debug2: channel 0: output open -&amp;gt; drain^M&lt;BR /&gt;debug2: channel 0: obuf empty^M&lt;BR /&gt;debug2: channel 0: close_write^M&lt;BR /&gt;debug2: channel 0: output drain -&amp;gt; closed^M&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jan 2011 17:14:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733228#M531100</guid>
      <dc:creator>akm_1</dc:creator>
      <dc:date>2011-01-04T17:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733229#M531101</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;ssh -i user@hostname date&lt;BR /&gt;&lt;BR /&gt;to see if anything is displayed on the terminal.  the -i tells ssh to set upa  psuedo tty for command interaction.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Doug O'Leary</description>
      <pubDate>Tue, 04 Jan 2011 17:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733229#M531101</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2011-01-04T17:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733230#M531102</link>
      <description>&amp;gt;I won't be able to get the stack trace for remote server process.&lt;BR /&gt;&lt;BR /&gt;No sshd process hanging around?</description>
      <pubDate>Tue, 04 Jan 2011 20:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733230#M531102</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-04T20:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733231#M531103</link>
      <description>-i option in ssh is used along with identity file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the sshd version we use in the local server is OpenSSH_5.2 and in remote server is OpenSSH_5.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    root  5522 24595  0 16:05:05 ?         0:00 sshd: netops [priv]&lt;BR /&gt;  netops  5699  5522  0 16:05:06 ?         0:00 sshd: netops@notty&lt;BR /&gt;  netops  5713  5699  3 16:05:06 ?         0:00 &lt;DEFUNCT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ pstack 5699&lt;BR /&gt;attach: Permission denied&lt;BR /&gt;&lt;BR /&gt;$ pstack 5713&lt;BR /&gt;pstat_getprocvm: Error 0&lt;BR /&gt;could not find (static?) executable, cant unwind&lt;BR /&gt;attach: Permission denied&lt;BR /&gt;&lt;BR /&gt;&lt;/DEFUNCT&gt;</description>
      <pubDate>Tue, 04 Jan 2011 21:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733231#M531103</guid>
      <dc:creator>akm_1</dc:creator>
      <dc:date>2011-01-04T21:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733232#M531104</link>
      <description>stack trace in remote server &lt;BR /&gt;&lt;BR /&gt;    root  5522 24595  0 16:05:05 ?         0:00 sshd: netops [priv]&lt;BR /&gt;  netops  5699  5522  0 16:05:06 ?         0:00 sshd: netops@notty&lt;BR /&gt;  netops  5713  5699  3 16:05:06 ?         0:00 &lt;DEFUNCT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ pstack 5699&lt;BR /&gt;attach: Permission denied&lt;BR /&gt;&lt;BR /&gt;$ pstack 5713&lt;BR /&gt;pstat_getprocvm: Error 0&lt;BR /&gt;could not find (static?) executable, cant unwind&lt;BR /&gt;attach: Permission denied&lt;BR /&gt;&lt;BR /&gt;&lt;/DEFUNCT&gt;</description>
      <pubDate>Tue, 04 Jan 2011 21:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733232#M531104</guid>
      <dc:creator>akm_1</dc:creator>
      <dc:date>2011-01-04T21:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733233#M531105</link>
      <description>check what version of xport/streams patch you have.</description>
      <pubDate>Wed, 05 Jan 2011 00:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733233#M531105</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2011-01-05T00:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733234#M531106</link>
      <description>&amp;gt;stack trace in remote server&lt;BR /&gt;&amp;gt;attach: Permission denied&lt;BR /&gt;&lt;BR /&gt;You'll need to be root or netops.</description>
      <pubDate>Wed, 05 Jan 2011 06:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733234#M531106</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-05T06:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733235#M531107</link>
      <description>please find below the stream patches in local server&lt;BR /&gt;&lt;BR /&gt;$show_patches -a -s | grep -i stream&lt;BR /&gt;  PHCO_31677            Japanese streams manpages&lt;BR /&gt;  PHNE_35482            Streams Pty cumulative patch&lt;BR /&gt;  PHNE_37258            Cumulative STREAMS Patch&lt;BR /&gt;  PHNE_32201            Cumulative STREAMS Patch&lt;BR /&gt;  PHNE_33732            Cumulative STREAMS Patch&lt;BR /&gt;  PHNE_33899            Streams Pty cumulative patch&lt;BR /&gt;  PHNE_36575            Cumulative STREAMS Patch&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please find below the stream patches in remote server&lt;BR /&gt;&lt;BR /&gt;$ show_patches -a -s | grep -i stream&lt;BR /&gt;  PHCO_31677            Japanese streams manpages&lt;BR /&gt;  PHNE_35482            Streams Pty cumulative patch&lt;BR /&gt;  PHNE_36575            Cumulative STREAMS Patch&lt;BR /&gt;  PHNE_32201            Cumulative STREAMS Patch&lt;BR /&gt;  PHNE_33732            Cumulative STREAMS Patch&lt;BR /&gt;  PHNE_33899            Streams Pty cumulative patch&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If this is not what you expected, please let me know the command I need to execute</description>
      <pubDate>Wed, 05 Jan 2011 16:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733235#M531107</guid>
      <dc:creator>akm_1</dc:creator>
      <dc:date>2011-01-05T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733236#M531108</link>
      <description>Stack trace in remote server &lt;BR /&gt;&lt;BR /&gt;    root  1152     1  0  Jun  8  ?        13:59 /opt/ssh/sbin/sshd&lt;BR /&gt;    root 29435  1152  0 22:02:07 ?         0:00 sshd: netops [priv]&lt;BR /&gt;  netops 29601 29435  0 22:02:08 ?         0:00 sshd: netops@notty&lt;BR /&gt;  netops 29616 29601  3 22:02:08 ?         0:00 &lt;DEFUNCT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root$&lt;BR /&gt;# pstack 29616&lt;BR /&gt;pstat_getprocvm: Error 0&lt;BR /&gt;could not find (static?) executable, cant unwind&lt;BR /&gt;attach: Permission denied&lt;BR /&gt;29616:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root$&lt;BR /&gt;# pstack 29601&lt;BR /&gt;29601:  /opt/ssh/sbin/sshd&lt;BR /&gt;&lt;BR /&gt;--------------------------------  lwpid : 3505344   -------------------------------&lt;BR /&gt;&lt;BR /&gt; 0: c00000000036aff0 : _select_sys() + 0x30 (/usr/lib/hpux64/libc.so.1)&lt;BR /&gt; 1: c00000000037dca0 : _select() + 0xc0 (/usr/lib/hpux64/libc.so.1)&lt;BR /&gt; 2: 40000000000f2bd0 : dump_config() + 0x2f50 (/opt/ssh/sbin/sshd)&lt;BR /&gt; 3: 40000000000f66c0 : server_loop2() + 0x470 (/opt/ssh/sbin/sshd)&lt;BR /&gt; 4: 4000000000106b30 : do_authenticated() + 0x1e0 (/opt/ssh/sbin/sshd)&lt;BR /&gt; 5: 4000000000106a80 : do_authenticated() + 0x130 (/opt/ssh/sbin/sshd)&lt;BR /&gt; 6: 40000000000db460 : main() + 0x5940 (/opt/ssh/sbin/sshd)&lt;BR /&gt; 7: c000000000042450 : main_opd_entry() + 0x50 (/usr/lib/hpux64/dld.so)&lt;BR /&gt;&lt;/DEFUNCT&gt;</description>
      <pubDate>Wed, 05 Jan 2011 16:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733236#M531108</guid>
      <dc:creator>akm_1</dc:creator>
      <dc:date>2011-01-05T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: ssh session hangs after successful execution of remote command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733237#M531109</link>
      <description>&amp;gt;netops 29616 29601 3 22:02:08 &lt;DEFUNCT&gt;&lt;BR /&gt;&lt;BR /&gt;It looks like there is a sshd zombie left over.&lt;/DEFUNCT&gt;</description>
      <pubDate>Wed, 05 Jan 2011 17:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-session-hangs-after-successful-execution-of-remote-command/m-p/4733237#M531109</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-05T17:23:41Z</dc:date>
    </item>
  </channel>
</rss>

