From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Finalizing my backup system
Date: Wed, 6 Oct 2010 14:43:26 -0700 [thread overview]
Message-ID: <AANLkTimL_126647nZxm8n+fb2pK1sa6h1eb7KqA39uHN@mail.gmail.com> (raw)
In-Reply-To: <4CACD22E.1080104@orlitzky.com>
>>>> I'm using backupninja to backup data from my laptop, desktop, and
>>>> remote server onto a remote desktop system. backupninja is very
>>>> simple and is really just an interface to a few other programs
>>>> including rdiff-backup. I'm not worried about a good restore method
>>>> for now, I want to focus on keeping it simple and protecting my data.
>>>> This is the first time I've set up a real backup system and I'd love
>>>> to get some advice from you guys. I've got a few questions.
>>>>
>>>> 1. This is the first time I've used passwordless SSH keys. root on
>>>> each system being backed up logs into the remote desktop as a normal
>>>> user to store the backups. Is this pretty safe? I suppose if root is
>>>> compromised on any of the three systems being backed up (via physical
>>>> access or otherwise), the remote desktop will also be compromised as a
>>>> normal user. Maybe that normal user should be extraordinarily
>>>> unprivileged?
>>>
>>> You can limit SSH access to only certain commands. On the remote desktop
>>> machine, you probably had to add an entry to the SSH authorized_keys
>>> file. You can prefix that line with the command that the user is allowed
>>> to run. For example (I use rdiff-backup too):
>>>
>>> command="/usr/bin/rdiff-backup --server",no-pty,no-port-forwarding
>>> ssh-rsa <big_ugly_key>
>>
>> I tried both that and simplified versions of it but it seems to
>> prevent the login from working. It hangs on the following command,
>> which works if I don't add the above:
>>
>> ssh -o PasswordAuthentication=no 1.2.3.4 -l user 'echo -n 1'
>
> That's the point? You can't log in (run /bin/bash) or do anything except
> the command listed in the authorized_keys file.
I see what you're saying but don't I need to use the ssh command in
order to use the rdiff-backup command?
- Grant
next prev parent reply other threads:[~2010-10-06 21:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-26 19:13 [gentoo-user] Finalizing my backup system Grant
2010-09-26 20:07 ` [gentoo-user] " walt
2010-09-26 21:58 ` [gentoo-user] " Michael Orlitzky
2010-10-06 17:40 ` Grant
2010-10-06 19:46 ` Michael Orlitzky
2010-10-06 21:43 ` Grant [this message]
2010-10-07 1:45 ` Michael Orlitzky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimL_126647nZxm8n+fb2pK1sa6h1eb7KqA39uHN@mail.gmail.com \
--to=emailgrant@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox