From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DNS_FROM_RFC_DSN, SPF_PASS autolearn=no version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=c435cwTOgHjz0No0q0nC83XCaiXVLYukpbu2NVOw/eA=; b=cWpA+XhJVpbjyZbZMZrQKUKwSz9CkVUxzKlRexeMgIm8b86ygaa1t3TwVMSwawJ21vsW0QkxQpmjU/fUs+ld4bZpj0KgmVV2RqmIfN3eYs+2u/hGJ67wnYeCznY+y1YpykKcqLh6MA83W8VWy3MwrqRR5IjXaC0p2yt/DuVQmYU=; Message-ID: <4F44E5D8.6070901@ukr.net> Date: Wed, 22 Feb 2012 14:55:52 +0200 From: =?UTF-8?B?IlZhc3lszIEgVi4gVmVyY3luc8yBa3lqIg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111228 Thunderbird/8.0 MIME-Version: 1.0 To: ALT Linux sysadmins' discussion References: <4F4474F3.3000607@rambler.ru> <20120222112047.GA31095@t60p.mithraen.ru> <4F44DB55.3000105@rambler.ru> <4F44E19F.5080600@rambler.ru> In-Reply-To: <4F44E19F.5080600@rambler.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Sysadmins] ssh: Permisson denied(publickey) X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux sysadmins' discussion List-Id: ALT Linux sysadmins' discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2012 12:55:58 -0000 Archived-At: List-Archive: 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........[ ]