<?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 connection immediately gives connection closed. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935012#M739558</link>
    <description>Steve,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;Nothing was changed on the server...It worked 2 weeks ago.&lt;BR /&gt;&lt;BR /&gt;sshd_config was copied from the server where everything is working properly.&lt;BR /&gt;&lt;BR /&gt;I'm accessing it as root not from a console...  &lt;BR /&gt;&lt;BR /&gt;Even if one of your suggestions were true, how come it's working from another port?&lt;BR /&gt;&lt;BR /&gt;Thanks again..&lt;BR /&gt;&lt;BR /&gt;Asya</description>
    <pubDate>Tue, 30 Jan 2007 11:49:32 GMT</pubDate>
    <dc:creator>Asya</dc:creator>
    <dc:date>2007-01-30T11:49:32Z</dc:date>
    <item>
      <title>ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935010#M739556</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a weird problem.&lt;BR /&gt;&lt;BR /&gt;I'm trying to ssh to a box...&lt;BR /&gt;Trying to ssh as a root with hostbased authentication, works fine.&lt;BR /&gt;Trying to ssh as a user, fails.&lt;BR /&gt;&lt;BR /&gt;This is the error message from the log file:&lt;BR /&gt;&lt;BR /&gt;Jan 30 11:18:22 graphite sshd[2424]: error: close(s-&amp;gt;ptymaster/0): Bad file number&lt;BR /&gt;Jan 30 11:18:22 graphite sshd[2426]: fatal: mm_receive_fd: recvmsg: expected received 1 got 0&lt;BR /&gt;&lt;BR /&gt;I tried to run sshd on a different port and it works..I'm able to ssh without any problems.&lt;BR /&gt;&lt;BR /&gt;Running in verbose mode gives the following:&lt;BR /&gt;&lt;BR /&gt;debug2: callback done&lt;BR /&gt;debug2: channel 0: open confirm rwindow 0 rmax 32768&lt;BR /&gt;debug1: channel 0: free: client-session, nchannels 1&lt;BR /&gt;debug3: channel 0: status: The following connections are open:&lt;BR /&gt;#0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cfd -1)&lt;BR /&gt;&lt;BR /&gt;debug3: channel 0: close_fds r 5 w 6 e 7 c -1&lt;BR /&gt;Connection to graphite closed by remote host.&lt;BR /&gt;Connection to graphite closed.&lt;BR /&gt;debug1: Transferred: stdin 0, stdout 0, stderr 79 bytes in 0.1 seconds&lt;BR /&gt;debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 1173.0&lt;BR /&gt;debug1: Exit status -1&lt;BR /&gt;&lt;BR /&gt;I checked patches..they are up to date and are the same as on the other server where everything is working properly.&lt;BR /&gt;&lt;BR /&gt;Connecting as a user through ssh client on windows works fine, though takes a while to connect. The problem is connecting from a non-windows client...solaris, hp-ux...&lt;BR /&gt;&lt;BR /&gt;What could be causing it?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 30 Jan 2007 11:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935010#M739556</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2007-01-30T11:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935011#M739557</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Check the syslog on the box you are trying to connect to.&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;There may be a networking issue or sshd_config may be configured to block root access.&lt;BR /&gt;&lt;BR /&gt;Also possible is the target system is configured only to permit root console login.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 30 Jan 2007 11:46:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935011#M739557</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-01-30T11:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935012#M739558</link>
      <description>Steve,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;Nothing was changed on the server...It worked 2 weeks ago.&lt;BR /&gt;&lt;BR /&gt;sshd_config was copied from the server where everything is working properly.&lt;BR /&gt;&lt;BR /&gt;I'm accessing it as root not from a console...  &lt;BR /&gt;&lt;BR /&gt;Even if one of your suggestions were true, how come it's working from another port?&lt;BR /&gt;&lt;BR /&gt;Thanks again..&lt;BR /&gt;&lt;BR /&gt;Asya</description>
      <pubDate>Tue, 30 Jan 2007 11:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935012#M739558</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2007-01-30T11:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935013#M739559</link>
      <description>When you copied the known good sshd_config over to the problem server, did you restart sshd? If not then it would explain why you were able to connect sshd started up on another port.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Tue, 30 Jan 2007 15:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935013#M739559</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-01-30T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935014#M739560</link>
      <description>Yes i did restart sshd.</description>
      <pubDate>Tue, 30 Jan 2007 15:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935014#M739560</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2007-01-30T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935015#M739561</link>
      <description>Is this an HP-UX node? If so, what rev of ssh and is it HP's build (Secure_Shell) or one you compile from source?&lt;BR /&gt;&lt;BR /&gt;Is UsePrivilegeSeparation set to yes or no in sshd_config? If it's yes, can you test user logins with it set to no?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-denver&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jan 2007 15:36:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935015#M739561</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-01-30T15:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935016#M739562</link>
      <description>Denver,&lt;BR /&gt;&lt;BR /&gt;Here it is..&lt;BR /&gt;&lt;BR /&gt;#UsePrivilegeSeparation yes&lt;BR /&gt;&lt;BR /&gt;I've noticed that sometimes ssh succeeds, sometimes doesn't...&lt;BR /&gt;&lt;BR /&gt;if it doesn't, it dies here:&lt;BR /&gt;&lt;BR /&gt;debug2: channel 0: open confirm rwindow 0 rmax 32768&lt;BR /&gt;debug1: channel 0: free: client-session, nchannels 1&lt;BR /&gt;debug3: channel 0: status: The following connections are open:&lt;BR /&gt;  #0 client-session (t4 r0 i0/0 o0/0 fd 4/5)&lt;BR /&gt;&lt;BR /&gt;debug3: channel 0: close_fds r 4 w 5 e 6&lt;BR /&gt;Connection to genius closed by remote host.&lt;BR /&gt;Connection to genius closed.&lt;BR /&gt;debug1: Transferred: stdin 0, stdout 0, stderr 75 bytes in 60.3 seconds&lt;BR /&gt;debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 1.2&lt;BR /&gt;debug1: Exit status -1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it hangs for about 30 seconds before giving out this error.  Sometimes it doesn't give this error message and work..&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jan 2007 14:57:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935016#M739562</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2007-01-31T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935017#M739563</link>
      <description>Maybe you're seeing a DNS issue...&lt;BR /&gt;&lt;BR /&gt;Is "UseDNS yes" in sshd_config? If so, do things improve if setting UseDNS to no?&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Wed, 31 Jan 2007 18:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935017#M739563</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2007-01-31T18:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: ssh connection immediately gives connection closed.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935018#M739564</link>
      <description>Denver,&lt;BR /&gt;&lt;BR /&gt;very weird thing.  The problem went away after the reboot.  Any idea..?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Thu, 01 Feb 2007 09:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-connection-immediately-gives-connection-closed/m-p/3935018#M739564</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2007-02-01T09:03:31Z</dc:date>
    </item>
  </channel>
</rss>

