LINUX.ORG.RU

ssd: Connection closed by remote host


0

0

Вылетает вот такая ошибка:

[letux@Letux .ssh]$ ssh-copy-id -i ~/.ssh/id_rsa.pub 10.10.10.10 28 ssh_exchange_identification: Connection closed by remote host Now try logging into the machine, with "ssh '10.10.10.10'", and check in:

.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

Залил ключи ручками... Пробую. [letux@Letux .ssh]$ slogin 10.10.10.10 ssh_exchange_identification: Connection closed by remote host

Что это может быть?

anonymous

Re: ssd: Connection closed by remote host

ssh -vvv 10.10.10.10

Valmont ★★★ ()
Ответ на: Re: ssd: Connection closed by remote host от Valmont

Re: ssd: Connection closed by remote host

Эта проблема решилась добавлением в hosts.allow строки sshd: мой IP.

Но теперь появилась новая проблема. [letux@Letux /]$ slogin -v letux@10.10.10.10 OpenSSH_4.2p1, OpenSSL 0.9.7g 11 Apr 2005 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for 10.10.10.10 debug1: /etc/ssh/ssh_config line 40: Deprecated option "FallBackToRsh" debug1: /etc/ssh/ssh_config line 43: Deprecated option "UseRsh" debug1: Connecting to 10.10.10.10 [10.10.10.10] port 22. debug1: Connection established. debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.2 debug1: match: OpenSSH_4.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.2 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 zlib@openssh.com debug1: kex: client->server aes128-cbc hmac-md5 zlib@openssh.com debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '10.10.10.10' is known and matches the RSA host key. debug1: Found key in /home/letux2/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,keyboard-interactive debug1: No more authentication methods to try. Permission denied (publickey,keyboard-interactive).

А если логинится с сервера на мою машину, то заходит нормально. Правда на сервере (Mandriva 2006) стоит повышенный уровень безопасноти. Т.е. возможно что-то в нём поназакрывали скрипты, что теперь нелься приконнектится. У кого какие мысли?

anonymous ()
Ответ на: Re: ssd: Connection closed by remote host от anonymous

Re: ssd: Connection closed by remote host

Но теперь появилась новая проблема. [letux@Letux /]$ slogin -v letux@10.10.10.10 OpenSSH_4.2p1, OpenSSL 0.9.7g 11 Apr 2005 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for 10.10.10.10 debug1: /etc/ssh/ssh_config line 40: Deprecated option "FallBackToRsh" debug1: /etc/ssh/ssh_config line 43: Deprecated option "UseRsh" debug1: Connecting to 10.10.10.10 [10.10.10.10] port 22. debug1: Connection established. debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.2 debug1: match: OpenSSH_4.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.2 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 zlib@openssh.com debug1: kex: client->server aes128-cbc hmac-md5 zlib@openssh.com debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '10.10.10.10' is known and matches the RSA host key. debug1: Found key in /home/letux2/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,keyboard-interactive debug1: No more authentication methods to try. Permission denied (publickey,keyboard-interactive).

А если логинится с сервера на мою машину, то заходит нормально. Правда на сервере (Mandriva 2006) стоит повышенный уровень безопасноти. Т.е. возможно что-то в нём поназакрывали скрипты, что теперь нелься приконнектится. У кого какие мысли?

anonymous ()
Ответ на: Re: ssd: Connection closed by remote host от anonymous

Re: ssd: Connection closed by remote host

>У кого какие мысли?

почитать про уровни безопасности в используемом дистрибутиве и не использовать мандриву на сервере

Olorin ()
Ответ на: Re: ssd: Connection closed by remote host от Olorin

Re: ssd: Connection closed by remote host

+ большая просьба - нормально постить инфу из логов. В таком виде, думаю не только у меня, нет никакого желания их смотреть.

Valmont ★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.