- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh connection immediately gives connection closed...
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
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-30-2007 03:42 AM
тАО01-30-2007 03:42 AM
ssh connection immediately gives connection closed.
I have a weird problem.
I'm trying to ssh to a box...
Trying to ssh as a root with hostbased authentication, works fine.
Trying to ssh as a user, fails.
This is the error message from the log file:
Jan 30 11:18:22 graphite sshd[2424]: error: close(s->ptymaster/0): Bad file number
Jan 30 11:18:22 graphite sshd[2426]: fatal: mm_receive_fd: recvmsg: expected received 1 got 0
I tried to run sshd on a different port and it works..I'm able to ssh without any problems.
Running in verbose mode gives the following:
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cfd -1)
debug3: channel 0: close_fds r 5 w 6 e 7 c -1
Connection to graphite closed by remote host.
Connection to graphite closed.
debug1: Transferred: stdin 0, stdout 0, stderr 79 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 1173.0
debug1: Exit status -1
I checked patches..they are up to date and are the same as on the other server where everything is working properly.
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...
What could be causing it?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 03:46 AM
тАО01-30-2007 03:46 AM
Re: ssh connection immediately gives connection closed.
Check the syslog on the box you are trying to connect to.
/var/adm/syslog/syslog.log
There may be a networking issue or sshd_config may be configured to block root access.
Also possible is the target system is configured only to permit root console login.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 03:49 AM
тАО01-30-2007 03:49 AM
Re: ssh connection immediately gives connection closed.
Thanks for the response.
Nothing was changed on the server...It worked 2 weeks ago.
sshd_config was copied from the server where everything is working properly.
I'm accessing it as root not from a console...
Even if one of your suggestions were true, how come it's working from another port?
Thanks again..
Asya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 07:21 AM
тАО01-30-2007 07:21 AM
Re: ssh connection immediately gives connection closed.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 07:25 AM
тАО01-30-2007 07:25 AM
Re: ssh connection immediately gives connection closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 07:36 AM
тАО01-30-2007 07:36 AM
Re: ssh connection immediately gives connection closed.
Is UsePrivilegeSeparation set to yes or no in sshd_config? If it's yes, can you test user logins with it set to no?
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 06:57 AM
тАО01-31-2007 06:57 AM
Re: ssh connection immediately gives connection closed.
Here it is..
#UsePrivilegeSeparation yes
I've noticed that sometimes ssh succeeds, sometimes doesn't...
if it doesn't, it dies here:
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 fd 4/5)
debug3: channel 0: close_fds r 4 w 5 e 6
Connection to genius closed by remote host.
Connection to genius closed.
debug1: Transferred: stdin 0, stdout 0, stderr 75 bytes in 60.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 1.2
debug1: Exit status -1
it hangs for about 30 seconds before giving out this error. Sometimes it doesn't give this error message and work..
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 10:37 AM
тАО01-31-2007 10:37 AM
Re: ssh connection immediately gives connection closed.
Is "UseDNS yes" in sshd_config? If so, do things improve if setting UseDNS to no?
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2007 01:03 AM
тАО02-01-2007 01:03 AM
Re: ssh connection immediately gives connection closed.
very weird thing. The problem went away after the reboot. Any idea..?
Thank you!