The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help needed nnayagam Shell Programming and Scripting 2 03-07-2008 03:34 AM
Little help needed. Netghost AIX 5 08-10-2006 11:29 AM
Help needed dsravan Shell Programming and Scripting 2 07-20-2006 06:37 AM
awk help needed. cskumar Shell Programming and Scripting 0 07-20-2006 04:24 AM
Sed help needed stevefox Shell Programming and Scripting 5 12-04-2005 10:44 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2002
penguin-friend
Guest
 

Posts: n/a
Question Another SSH help needed

Hi all...

After doing a
$ ssh server uname

I get the following:

ssh_exchange_identification: Connection closed by remote host

I have never seen this before...What does this mean?

Thanx

Jason
Forum Sponsor
  #2  
Old 05-24-2002
thehoghunter
Guest
 

Posts: n/a
Try this - got it from snailbook.com

Your version may be different or it may be different on your OS (which you didn't post)

My SSH client connects, but the server seems to immediately close the connection. I get "connection closed" or "connection lost," or with OpenSSH:
ssh_exchange_identification: Connection closed by remote host


--------------------------------------------------------------------------------
This message means that the client got a TCP connection to the server, but the server immediately closed it before the SSH protocol could get started (the ssh_exchange_identification routine implements the version string exchange, the initial step of the protocol).
This usually happens because of a libwrap setting which prohibits the connection. Check the server log; if this is the problem, you will see messages like these:

SSH1, OpenSSH sshd1[15092]: refused connect from 192.168.10.1
SSH2 sshd2[15085]: Denied connection from by 192.168.10.1 tcp wrappers.
If you compiled the SSH server with libwrap (TCP-wrappers) support, check that the rules in the files /etc/hosts.{allow,deny} on the server host allow connection to the SSH daemon. An entry like this, for example, will allow connections to sshd from any source address:
sshd sshd1 sshd2 : ALL : ALLOW

The name on the left must be the argv[0] value of the running daemon, so if you've invoked sshd under another name, you'll need to use that. Also, the rules are order-dependent, so the rule just given might not work, depending on the other rules and their relative placement. See the hosts_access(5) man page for details on the libwrap rule syntax and semantics.
  #3  
Old 05-24-2002
penguin-friend
Guest
 

Posts: n/a
OK! THANX!

This helped me...
I also found out that the server in question denies almost all remote connections, except console... That was my problem...

Thanx anyways...

Cheers
Jason
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0