[Sysadmins] ssh: Permisson denied(publickey)
Vasij
linux_helper на rambler.ru
Ср Фев 22 16:11:01 MSK 2012
22.02.2012 15:20, Денис Смирнов пишет:
> On Wed, Feb 22, 2012 at 08:54:11AM +0400, Vasij wrote:
>
> V> - Пробуем с "6" подключитсья к "4" видем вот что:
> V> - ssh: Permisson denied(publickey)
>
> А в логах на сервере что?
>
>
>
> _______________________________________________
> Sysadmins mailing list
> Sysadmins на lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
Сделали на клиенте в дебаг режиме - вот что видим:
...
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/kbru/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/kbru/.ssh/id_dsa
debug3: no such identity: /home/kbru/.ssh/id_dsa
debug1: Trying private key: /home/kbru/.ssh/id_ecdsa
debug3: no such identity: /home/kbru/.ssh/id_ecdsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
...
А должно быть вот так:
...
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/kbru/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
...
----------- следующая часть -----------
Вложение в формате HTML было удалено...
URL: <http://lists.altlinux.org/pipermail/sysadmins/attachments/20120222/28df30da/attachment.html>
Подробная информация о списке рассылки Sysadmins