Remote SSH problem - connection closed by remote host



Hi everyone,
I have been reading every post that I could find about this particular
error message:

ssh_exchange_identification: Connection closed by remote host

I'm working with an external client who wants to grab some files from
us via SFTP. I set up a Solaris 9 server with "ChrootSSH" from here:

http://chrootssh.sourceforge.net/index.php

I compiled it locally with the following options:

../configure --with-pam --disable-suid-ssh --without-rsh --with-
lastlog=/var/adm/lastlog --sysconfdir=/usr/local/etc/openssh --prefix=/
usr/local --without-privsep-user--without-privsep-path --without-prngd
--without-rand-helper --with-tcp-wrappers=/usr/sfw

OpenSSH has been configured with the following options:
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc/openssh
Askpass program: /usr/local/libexec/ssh-askpass
Manual pages: /usr/local/share/man/manX
PID file: /var/run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin
(If PATH is set in /etc/default/login it will be used instead. If
used, ensure the path to scp is present, otherwise scp will not
work.)
Manpage format: man
PAM support: yes
OSF SIA support: no
KerberosV support: no
SELinux support: no
Smartcard support: no
S/KEY support: no
TCP Wrappers support: yes
MD5 password support: no
libedit support: no
Solaris process contract support: no
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: no
BSD Auth support: no
Random number source: OpenSSL internal ONLY

Host: sparc-sun-solaris2.9
Compiler: gcc
Compiler flags: -g -O2 -Wall -Wpointer-arith -Wuninitialized -
Wsign-compare
Preprocessor flags: -I/usr/local/ssl/include -I/usr/sfw/include
Linker flags: -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/
sfw/lib -R/usr/sfw/lib
Libraries: -lwrap -lpam -ldl -lresolv -lcrypto -lrt -lz -
lsocket -lnsl

I setup the chroot jail and it works fine from the local network and
from another external server running Debian 3.0.

However, from the client's test machine, they continually get the
following error:

$ ssh -vvv user@IP
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to IP [IP] port 22.
debug1: Connection established.
debug1: identity file /home/.ssh/identity type -1
debug1: identity file /home/.ssh/id_rsa type -1
debug1: identity file /home/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
debug1: Calling cleanup 0x34214(0x0)

From what I've read, this error is usually caused by TCP wrappers and
is due to missing entries in hosts.deny / hosts.allow. I put in a
hosts.allow file (no hosts.deny) with the following yet still no
connection. In sshd_config I also changed the "UseDNS" option to "NO"

sshd sshd1 sshd2 : ALL : ALLOW
ssh: ALL : ALLOW

They tried telnetting to port 22 and received the same error. I'm
still thinking that this might be a client side issue, but is there
anything else that you guys can think of that would be causing this?

Is there such a thing as SSH version mismatch since they're running
Sun SSH 1.1 and I'm running SSH-1.99-OpenSSH_4.5 ?

Any help would be greatly appreciated.
Ken

.



Relevant Pages

  • Re: NDR 5.6.1
    ... that is typically because the remote host doesnt support 8bit mime. ... Try creating a SMTP connector for just that domain and under the ... HELO instead of EHLO and test;-) ...
    (microsoft.public.exchange.admin)
  • Turning off 8bitmime
    ... Body type not supported by Remote Host". ... the remote domain apparently doesn't support 8bitmime. ... that it will generate the same errors when another email server or clients ...
    (microsoft.public.exchange.admin)
  • Re: Event Log Errors
    ... It opens a TCP/IP connection to port 25 of the remote host. ... It receives an acknowledgement from the remote host. ... Exchange server sends the XEXCH50 command followed by the number of bytes ... SBS Online Support Professional ...
    (microsoft.public.windows.server.sbs)
  • Re: NDR 5.6.1
    ... The message was sent in plain text without any particular feature... ... that is typically because the remote host doesnt support 8bit mime. ... Try creating a SMTP connector for just that domain and under the ...
    (microsoft.public.exchange.admin)
  • Re: SSH through wireless router
    ... When you say that I should try ssh ... Connection closed by remote host ... When I went to sshd to port 2222: ... debug1: read PEM private key done: type RSA ...
    (Debian-User)