From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P3tbh-0002kC-7y for garchives@archives.gentoo.org; Thu, 07 Oct 2010 16:46:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EC3EE06A1; Thu, 7 Oct 2010 16:45:45 +0000 (UTC) Received: from blackmamba.kicks-ass.org (li139-29.members.linode.com [109.74.192.29]) by pigeon.gentoo.org (Postfix) with ESMTP id 15DCBE06A1 for ; Thu, 7 Oct 2010 16:45:44 +0000 (UTC) Received: (qmail 6464 invoked from network); 7 Oct 2010 16:45:49 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 7 Oct 2010 16:45:49 -0000 Received: from wwwtuk1vip.microsoft.com (wwwtuk1vip.microsoft.com [207.46.170.123]) by momessonet.ath.cx (Horde Framework) with HTTP; Thu, 07 Oct 2010 18:45:49 +0200 Message-ID: <20101007184549.65756vlexbx2u7sw@momessonet.ath.cx> Date: Thu, 07 Oct 2010 18:45:49 +0200 From: Momesso Andrea To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Copying a file via ssh with no password, keeping the system safe Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.3) X-Archives-Salt: 91d6f503-2e32-43e2-af6f-5163177e097c X-Archives-Hash: 85238c6ff9c5bbb1270c4b2633065d6d Hi list, I need to set up a cron job to transfer a file every day from server A to server B. I'd like to do that via ssh and with no user assistance, completely automated. Setting up a public key, would do the job, but then, all the connections between the servers would be passwordless, so if server A gets compromised, also server B is screwed. Is there a way to allow only one single command from a single cronjob to operate passwordless, while keeping all the other connections secured by a password? Thank you in advance for your help. TopperH http://topperh.ath.cx ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.