From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 02:09:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1444A1065676 for ; Thu, 23 Oct 2008 02:09:26 +0000 (UTC) (envelope-from lists@sequestered.net) Received: from alcatraz.sequestered.net (alcatraz.sequestered.net [24.199.11.2]) by mx1.freebsd.org (Postfix) with ESMTP id E668C8FC0A for ; Thu, 23 Oct 2008 02:09:25 +0000 (UTC) (envelope-from lists@sequestered.net) Received: from [10.10.20.197] (rrcs-67-52-96-162.west.biz.rr.com [67.52.96.162]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jay@sequestered.net) by alcatraz.sequestered.net (Postfix) with ESMTPSA id A328267FD4; Wed, 22 Oct 2008 18:50:26 -0700 (PDT) Message-Id: <7131CDCF-E6F4-49DD-9B86-605CEECAA73A@sequestered.net> From: Jay Chandler To: kalin m In-Reply-To: <48FFD609.6090206@el.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Wed, 22 Oct 2008 18:50:13 -0700 References: <48FFD609.6090206@el.net> X-Mailer: Apple Mail (2.929.2) X-SEQUESTERED-NET-MailScanner-Watermark: 1225331427.80798@upEqO6+zYhSMCWlicIADfQ X-SEQUESTERED-NET-MailScanner-Information: Please contact Sequestered.net support for more information X-MailScanner-ID: A328267FD4.EAD17 X-SEQUESTERED-NET-MailScanner: Found to be clean X-SEQUESTERED-NET-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.6, required 6, J_CHICKENPOX_23 0.60) X-SEQUESTERED-NET-MailScanner-From: lists@sequestered.net X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: scp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 02:09:26 -0000 On Oct 22, 2008, at 6:40 PM, kalin m wrote: > hi all... > > i need to do a script to copy a file from a remote machine via scp > with a key and without a password.... > > here is what i'm doing: > > 1. ssh-keygen -t rsa > 2. scp new_key.pub to user@remote_host (with password) > 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys > Should be authorized_keys. I usually cheat and grab a copy of ssh-copy-id from the web; I suspect your issue has to do with permissions for the .ssh directory and the authorized_keys file. -- Jay Chandler / KB1JWQ Living Legend / Systems Exorcist Today's Excuse: Budget cuts