From 2f3942382f29c2514f26c0fe935d5a10095833c5 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 26 Dec 2010 03:31:28 +0100 Subject: Improve instructions of creating remote backup user. --- fripost-docs.org | 6 +++--- 1 file 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 -- cgit v1.2.3