Gentoo Archives: gentoo-user

From: Momesso Andrea <momesso.andrea@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Copying a file via ssh with no password, keeping the system safe
Date: Thu, 07 Oct 2010 16:46:13
Message-Id: 20101007184549.65756vlexbx2u7sw@momessonet.ath.cx
1 Hi list,
2
3 I need to set up a cron job to transfer a file every day from server A
4 to server B.
5
6 I'd like to do that via ssh and with no user assistance, completely automated.
7
8 Setting up a public key, would do the job, but then, all the
9 connections between the servers would be passwordless, so if server A
10 gets compromised, also server B is screwed.
11
12 Is there a way to allow only one single command from a single cronjob
13 to operate passwordless, while keeping all the other connections
14 secured by a password?
15
16 Thank you in advance for your help.
17
18 TopperH
19 http://topperh.ath.cx
20
21 ----------------------------------------------------------------
22 This message was sent using IMP, the Internet Messaging Program.

Replies

Subject Author
Re: [gentoo-user] Copying a file via ssh with no password, keeping the system safe Stroller <stroller@××××××××××××××××××.uk>
Re: [gentoo-user] Copying a file via ssh with no password, keeping the system safe Willie Wong <wwong@××××××××××××××.EDU>
Re: [gentoo-user] Copying a file via ssh with no password, keeping the system safe Andrea Conti <alyf@××××.net>