ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "\"Vasyĺ V. Vercynśkyj\"" <fuckel@ukr.net>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] ssh: Permisson denied(publickey)
Date: Wed, 22 Feb 2012 14:55:52 +0200
Message-ID: <4F44E5D8.6070901@ukr.net> (raw)
In-Reply-To: <4F44E19F.5080600@rambler.ru>

22.02.2012 14:37, Vasij пишет:
[…]
> 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
           ^^^^^^^^^^^^^
А здесь что непонятного? Как и предполагалось, старый ssh ищет публичный 
ключ в ~/.ssh/authorized_keys2. Если бы Вы выполнили копирование ключа 
через скрипт, как Вам подсказывали:
$ ssh-copy-id -i id_rsa2 [user@]server
то ошибки бы этой не было.

> Права
> 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
Попробуйте на сервере:
$ mv ~/.ssh/authorized_keys ~/.ssh/authorized_keys2

И подключайтесь к нему:
$ ssh host -i ~/.ssh/id_rsa2

-- 
WBR........[x]
TFTHAOT....[ ]
AMF........[ ]


  parent reply	other threads:[~2012-02-22 12:55 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22  4:54 Vasij
2012-02-22  6:14 ` Stanislav Vlasov
2012-02-22  6:57   ` Vasij
2012-02-22  7:56     ` REAL
2012-02-22 11:33     ` Mykola S. Grechukh
2012-02-22  7:14 ` "Vasyĺ V. Vercynśkyj"
2012-02-22  7:17   ` Vasij
2012-02-22  7:59     ` "Vasyĺ V. Vercynśkyj"
2012-02-22  8:08       ` Vasij
2012-02-22  9:17         ` "Vasyĺ V. Vercynśkyj"
2012-02-22  9:28           ` Vasij
2012-02-22 10:23             ` "Vasyĺ V. Vercynśkyj"
2012-02-22 11:28         ` Mykola S. Grechukh
2012-02-22 12:13           ` "Vasyĺ V. Vercynśkyj"
2012-02-22 11:20 ` Денис Смирнов
2012-02-22 12:38     ` "Vasyĺ V. Vercynśkyj"
2012-02-22 12:43       ` Vasij
2012-02-22 12:55       ` "Vasyĺ V. Vercynśkyj" [this message]
2012-02-23 12:02         ` REAL
2012-02-23 14:05           ` "Vasyĺ V. Vercynśkyj"
2012-02-23 14:20             ` Mykola S. Grechukh
2012-02-24  7:31               ` Vasij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F44E5D8.6070901@ukr.net \
    --to=fuckel@ukr.net \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git