aboutsummaryrefslogtreecommitdiffstats
path: root/fripost-docs.org
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2010-12-26 03:31:28 +0100
committerStefan Kangas <stefankangas@gmail.com>2010-12-26 03:31:28 +0100
commit2f3942382f29c2514f26c0fe935d5a10095833c5 (patch)
treec05268badf7c433a50d37ac89882f848fa7265d4 /fripost-docs.org
parent4228f51fbe977f98d21ad7ba9d8fd590f2618eaf (diff)
Improve instructions of creating remote backup user.
Diffstat (limited to 'fripost-docs.org')
-rw-r--r--fripost-docs.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/fripost-docs.org b/fripost-docs.org
index 92920a9..c2a3b5d 100644
--- a/fripost-docs.org
+++ b/fripost-docs.org
@@ -156,11 +156,11 @@ Aptitude
- cat .ssh/backup_key.pub
3. Create a user on the computer that will be backed up
- sudo adduser remupd
- - turn of password using sudo vipw -s
- - add the key to ~remupd/.ssh/authorized_keys2
+ - sudo passwd -d remupd
+ - add the public key from above to ~remupd/.ssh/authorized_keys2
prefix with: no-X11-forwarding,no-agent-forwarding,no-port-forwarding
- test the key:
- ssh -i ~/.ssh/backup_key -l remupd host
+ ssh -i ~/.ssh/backup_key -l remupd example.com
- add remupd to sudo:
Cmnd_Alias RSYNCDIST=/usr/bin/rsync
remupd ALL=NOPASSWD:RSYNCDIST