I just recently started a VPS using Fedora. Upon creation of the VPS I was asked if I wanted to use SSH keys (which I did). Now, to connect as root to the VPS, I do not need to enter a password.
Now I want to create a pair (or just reuse the same key) for user1 for use while using ssh. First I tried to paste the id_rsa.pub folder while logged in as user1 in the ~/.ssh/ folder.
- Still asks for password upon ssh
Then I added a authorized_keys file that was identical to the id_rsa.pub file.
- Still asks for password upon ssh
Then I chmod the permissions to the .ssh folder to 644 however, when I try to ssh login as user1.
- Still asks for password upon ssh
How can I use the same public ssh key on a user account that I have for the root account. Where to I put these files, and what is the difference between having a id_rsa.pub file and an authorized_keys file?