From owner-freebsd-isp@FreeBSD.ORG Wed Oct 8 02:21:03 2008 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0339106568E for ; Wed, 8 Oct 2008 02:21:03 +0000 (UTC) (envelope-from technical@halenet.com.au) Received: from helen.halenet.com.au (helen.halenet.com.au [203.55.33.243]) by mx1.freebsd.org (Postfix) with ESMTP id 558658FC1A for ; Wed, 8 Oct 2008 02:21:03 +0000 (UTC) (envelope-from technical@halenet.com.au) Received: from localhost (localhost.halenet.com.au [127.0.0.1]) by helen.halenet.com.au (Postfix) with ESMTP id B44511EE8D0 for ; Wed, 8 Oct 2008 12:16:19 +1000 (EST) X-Virus-Scanned: amavisd-new at halenet.com.au Received: from helen.halenet.com.au ([127.0.0.1]) by localhost (helen.halenet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zduoqJVdSg24 for ; Wed, 8 Oct 2008 12:16:19 +1000 (EST) Received: from hal (gw1.halenet.com.au [203.55.33.225]) by helen.halenet.com.au (Postfix) with ESMTPA id 49C5F1EE8DB for ; Wed, 8 Oct 2008 12:16:19 +1000 (EST) Message-ID: <009b01c928e9$fbe1f3b0$6500a8c0@hal> From: "lists" To: Date: Wed, 8 Oct 2008 12:02:57 +1000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Subject: ssh to remote machines using authorized keys X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 02:21:03 -0000 Hi all I have the following situation which I am trying to get around I have a need to be able to ssh without_password using rsa keys to authenticate the ssh session. I have created and installed the ~/.ssh/authorized_keys for both a system user and for root on the remote machine and I have changed the /etc/ssh/sshd_config accordingly and I have run /etc/rc.d/sshd restart. I have successfully logged into the remote machine using the rsa keys for both the root user and the system user. The problem I have is that I want to log into the remote machine as root from a system user on the main machine. Each time I try I get a password prompt and even if I enter the correct root password it gives me "Permission denied (publickey,keyboard-interactive,hostbased)" If I type user prompt $ ssh user@remote.machine it works fine root prompt # ssh root@remote.machine it works fine but when I type user prompt $ ssh root@remote.machine I get prompted for a password followed by the error above, which is "Permission denied (publickey,keyboard-interactive,hostbased)" Can anyone tell me how to get around this? Is it possible? Thanks and Regards Tim