<html>
<head>
<meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
22.02.2012 16:11, Vasij пишет:
<blockquote cite="mid:4F44DB55.3000105@rambler.ru" type="cite">
<meta content="text/html; charset=KOI8-R"
http-equiv="Content-Type">
22.02.2012 15:20, Денис Смирнов пишет:
<blockquote cite="mid:20120222112047.GA31095@t60p.mithraen.ru"
type="cite">
<pre wrap="">On Wed, Feb 22, 2012 at 08:54:11AM +0400, Vasij wrote:
V> - Пробуем с "6" подключитсья к "4" видем вот что:
V> - ssh: Permisson denied(publickey)
А в логах на сервере что?
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Sysadmins mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Sysadmins@lists.altlinux.org">Sysadmins@lists.altlinux.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.altlinux.org/mailman/listinfo/sysadmins">https://lists.altlinux.org/mailman/listinfo/sysadmins</a></pre>
</blockquote>
<blockquote cite="mid:20120222112047.GA31095@t60p.mithraen.ru"
type="cite"> </blockquote>
Сделали на клиенте в дебаг режиме - вот что видим:<br>
...<br>
debug1: Authentications that can continue: publickey,password<br>
debug3: start over, passed a different list publickey,password<br>
debug3: preferred publickey,keyboard-interactive,password<br>
debug3: authmethod_lookup publickey<br>
debug3: remaining preferred: keyboard-interactive,password<br>
debug3: authmethod_is_enabled publickey<br>
debug1: Next authentication method: publickey<br>
debug1: Offering RSA public key: /home/kbru/.ssh/id_rsa<br>
debug3: send_pubkey_test<br>
debug2: we sent a publickey packet, wait for reply<br>
debug1: Authentications that can continue: publickey,password<br>
debug1: Trying private key: /home/kbru/.ssh/id_dsa<br>
debug3: no such identity: /home/kbru/.ssh/id_dsa<br>
debug1: Trying private key: /home/kbru/.ssh/id_ecdsa<br>
debug3: no such identity: /home/kbru/.ssh/id_ecdsa<br>
debug2: we did not send a packet, disable method<br>
debug3: authmethod_lookup password<br>
...<br>
<br>
А должно быть вот так:<br>
...<br>
debug1: Authentications that can continue: publickey,password<br>
debug3: start over, passed a different list publickey,password<br>
debug3: preferred publickey,keyboard-interactive,password<br>
debug3: authmethod_lookup publickey<br>
debug3: remaining preferred: keyboard-interactive,password<br>
debug3: authmethod_is_enabled publickey<br>
debug1: Next authentication method: publickey<br>
debug1: Offering public key: /home/kbru/.ssh/id_rsa<br>
debug3: send_pubkey_test<br>
debug2: we sent a publickey packet, wait for reply<br>
debug1: Server accepts key: pkalg ssh-rsa blen 277<br>
...<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Sysadmins mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sysadmins@lists.altlinux.org">Sysadmins@lists.altlinux.org</a>
<a class="moz-txt-link-freetext" href="https://lists.altlinux.org/mailman/listinfo/sysadmins">https://lists.altlinux.org/mailman/listinfo/sysadmins</a>
</pre>
</blockquote>
на сервере sshd в дебаг режиме<br>
<br>
debug3: monitor_read: checking request 20<br>
debug3: mm_answer_keyallowed entering<br>
debug3: mm_answer_keyallowed: key_from_blob: 0x664cd0<br>
debug1: checking public key system file
/etc/openssh/authorized_keys/kbru<br>
debug1: checking public key system file2
/etc/openssh/authorized_keys2/kbru<br>
debug1: temporarily_use_uid: 10244/10244 (e/0)<br>
debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED<br>
debug3: mm_request_receive_expect entering: type 21<br>
debug3: mm_request_receive entering<br>
debug1: trying public key file /home/kbru/.ssh/authorized_keys<br>
debug3: secure_filename: checking '/home/kbru/.ssh'<br>
debug3: secure_filename: checking '/home/kbru'<br>
debug3: secure_filename: terminating check at '/home/kbru'<br>
debug1: restore_uid: 0/0<br>
debug2: key not found<br>
debug1: temporarily_use_uid: 10244/10244 (e/0)<br>
debug1: trying public key file /home/kbru/.ssh/authorized_keys2<br>
debug3: secure_filename: checking '/home/kbru/.ssh'<br>
debug3: secure_filename: checking '/home/kbru'<br>
debug3: secure_filename: terminating check at '/home/kbru'<br>
debug1: restore_uid: 0/0<br>
debug2: key not found<br>
<br>
Права<br>
drwx------ 10 kbru kbru 4096 Feb 21 14:02 kbru<br>
drwx------ 3 kbru kbru 4096 Feb 22 16:04 .ssh<br>
-rw------- 1 kbru kbru 802 Feb 22 15:54 authorized_keys<br>
</body>
</html>