Add new comment
Want to support HowtoForge? Become a subscriber!
|
If your server1.example.com has sshd on different port than 22 eg. 1234 than You have to make additional changes on server backup.example.com: Add extra line to /backup/.ssh/config: port 1234 You shoul also use ssh-copy-id -p 1234 -i ~/.ssh/id_rsa.pub root@server1.example.com instead of ssh-copy-id -i ~/.ssh/id_rsa.pub root@server1.example.com Sometimes obove doesnt work, so You have to edit by root file ssh-copy-id (located /usr/bin/ssh-copy-id) around line 41: { eval "$GET_ID" ; } | ssh -p 1234 $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
Reply |



Recent comments
8 hours 45 min ago
18 hours 40 min ago
18 hours 50 min ago
20 hours 9 min ago
22 hours 16 min ago
1 day 42 min ago
1 day 8 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 12 hours ago