...
5. Assignment: Make a weekly -Offsite backup of the TownHall
Rdiff-backup
Login using ssh key
Create the key
do not enter any paraphrase.
Code Block |
---|
ssh-keygen -t rsa |
Copy the key to the client (the computer you want to access to)
Code Block |
---|
scp /root/.ssh/id_rsa.pub root@192.168.10.91:/home/ |
Write the public into the .ssh/authorized_key of the user (in his home folder) you want to login to
Code Block |
---|
cat id_rsa.pub >> /home/bl/.ssh/authorized_key |
change in /etc/ssh/sshd_config:
Code Block |
---|
PasswordAuthentication no
PermitRootLogin no |
If ssh doesn't work check the grp and own of .ssh/authorized_keys