22.02.2012 16:11, Vasij пишет:
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
[email protected]
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
...
_______________________________________________
Sysadmins mailing list
[email protected]
https://lists.altlinux.org/mailman/listinfo/sysadmins
на сервере sshd в дебаг режиме
debug3: monitor_read: checking request 20
debug3: mm_answer_keyallowed entering
debug3: mm_answer_keyallowed: key_from_blob: 0x664cd0
debug1: checking public key system file /etc/openssh/authorized_keys/kbru
debug1: checking public key system file2 /etc/openssh/authorized_keys2/kbru
debug1: temporarily_use_uid: 10244/10244 (e/0)
debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
debug3: mm_request_receive_expect entering: type 21
debug3: mm_request_receive entering
debug1: trying public key file /home/kbru/.ssh/authorized_keys
debug3: secure_filename: checking '/home/kbru/.ssh'
debug3: secure_filename: checking '/home/kbru'
debug3: secure_filename: terminating check at '/home/kbru'
debug1: restore_uid: 0/0
debug2: key not found
debug1: temporarily_use_uid: 10244/10244 (e/0)
debug1: trying public key file /home/kbru/.ssh/authorized_keys2
debug3: secure_filename: checking '/home/kbru/.ssh'
debug3: secure_filename: checking '/home/kbru'
debug3: secure_filename: terminating check at '/home/kbru'
debug1: restore_uid: 0/0
debug2: key not found
Права
drwx------ 10 kbru kbru 4096 Feb 21 14:02 kbru
drwx------ 3 kbru kbru 4096 Feb 22 16:04 .ssh
-rw------- 1 kbru kbru 802 Feb 22 15:54 authorized_keys
_______________________________________________
Sysadmins mailing list
[email protected]
https://lists.altlinux.org/mailman/listinfo/sysadmins