Both servers are Debian servers.
STEP 1:
On the backup-server (backup.mydomain.tld) I gave the command:
apt-get install rdiff-backup
On the webserver (server1.mydomain.tld) I gave the command:
apt-get install rdiff-backup
STEP 2:
On backup.mydomain.tld I gave all the commands following from now on:
groupadd -g 3500 rdiff-backup
useradd -u 3500 -s /bin/false -d /backup -m -c "rdiff-backup" -g rdiff-backup rdiff-backup
su -m rdiff-backup
cd /backup
ssh-keygen -t rsa
I gave two times an <enter> according the How to.
I created the file /backup/.ssh/config using the command $ nano /backup/.ssh/config with this contents:
host server1_backup
hostname server1.mydomain.tld
user root
identityfile /backup/.ssh/id_rsa
compression yes
cipher blowfish
protocol 2
When I wanted to save this file I got a message in the nano editor, that I have no permission to save the file. I decided to switch to root, by giving the command su and gave the root’s password.
Now the file /backup/.ssh/config was created with the contents mentioned above.
Now I gave the command: chmod -R go-rwx /backup/.ssh
And finally the command:
ssh-copy-id -i ~/.ssh/id_rsa.pub
root@server1.mydomain.tld
Then I receive the error on backup.mydomain.tld
21
/usr/bin/ssh-copy-id: ERROR: No identities found
Maybe I did something wrong, but I don’t think that I make a mistake by typing as I use Putty.
Cut and paste is not that difficult.
Can you help me further with this information?
Hans
Recent comments
23 hours 21 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 15 hours ago
2 days 4 hours ago
2 days 6 hours ago