Re: connection closed by foreign host
From: olaf weiser (olaf.weiser_at_t-systems.com)
Date: 10/17/03
- Previous message: Darren Tucker: "Re: RSA host keys problems with 2 different openssh servers on the samebox"
- In reply to: Q=DF=B5=C2=CB=A7?=: "connection closed by foreign host"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 17 Oct 2003 08:29:54 +0200 To: 吊蟻芳 <nds@fareast-tech.com>
HI,
try to clean up any key files (any host informations) and then establish
a new connection....
then you should be ask for a new key, maybe this 'll resolve your
problem....
by the way : most of the UNIX - you'll find these files in /etc/openssh
or /etc/ssh....
cheers
der laff
吊蟻芳 wrote:
>dear secureshell!
>
> I start sshd server on Redhat Linux 7.3, on the client side, i run the command
>
> [root@test root]ssh 192.168.0.150, I get the error message as followings:
> Connection closed by 192.168.0.150
>
> so, now i execute the command and get the error mesagges as followings:
>
> [root@test root]ssh 192.168.0.150
> OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for *
> debug1: Rhosts Authentication disabled, originating port will not be trusted.
> debug1: restore_uid
> debug1: ssh_connect: getuid 511 geteuid 0 anon 1
> debug1: Connecting to 192.168.0.150 [192.168.0.150] port 22.
> debug1: temporarily_use_uid: 511/511 (e=0)
> debug1: restore_uid
> debug1: temporarily_use_uid: 511/511 (e=0)
> debug1: restore_uid
> debug1: Connection established.
> debug1: read PEM private key done: type DSA
> debug1: read PEM private key done: type RSA
> debug1: identity file /home/nds/.ssh/identity type -1
> debug1: identity file /home/nds/.ssh/id_rsa type -1
> debug1: identity file /home/nds/.ssh/id_dsa type -1
> debug1: Remote protocol version 1.99, remote software version OpenSSH_2.9p2
> debug1: match: OpenSSH_2.9p2 pat OpenSSH*
> Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_3.1p1
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug1: dh_gen_key: priv key bits set: 131/256
> debug1: bits set: 1026/2049
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host '192.168.0.150' is known and matches the RSA host key.
> debug1: Found key in /home/nds/.ssh/known_hosts:1
> debug1: bits set: 1048/2049
> debug1: ssh_rsa_verify: signature correct
> debug1: kex_derive_keys
> debug1: newkeys: mode 1
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: waiting for SSH2_MSG_NEWKEYS
> debug1: newkeys: mode 0
> debug1: SSH2_MSG_NEWKEYS received
> debug1: done: ssh_kex2.
> debug1: send SSH2_MSG_SERVICE_REQUEST
> debug1: service_accept: ssh-userauth
> debug1: got SSH2_MSG_SERVICE_ACCEPT
> Connection closed by 192.168.0.150
> debug1: Calling cleanup 0x80634c0(0x0)
>
> could you give me some help on about this? thanks a lot.
>
> Best Regards
>
>
>
> nds
> nds@fareast-tech.com
> 2003-10-16
>
>
>
>
- Previous message: Darren Tucker: "Re: RSA host keys problems with 2 different openssh servers on the samebox"
- In reply to: Q=DF=B5=C2=CB=A7?=: "connection closed by foreign host"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]