I know that if I want to configure SSH access for key authentication, I need to use the following command:
ssh-keygen -b 2048 -t rsa -C “mypassphrase”
I then need to copy the codes created in id_rsa.pub
on my computer to the server's ~/.ssh/authorized_keys file. I also need to set permissions on some folder and file. This enables key authentication for my computer. Now, I would also like to know how I should enable such access on yet another computer. Do I have to add the created codes in id_rsa.pub
to the same ~/.ssh/authorized_keys
file?
Thanks for your help.