I was watching the instructional video on SSH, https://app.itpro.tv/course-library/ssh/using-cerfificates-ssh/ . I followed everything to the letter but it's giving me the error: Permission denied (publickey). Please help. Thanks.
-
SSH Certificate Authentication not working
-
Did you do the ssh-copy-id or just copy paste?
Make sure the permissions are setup correctly. The owner of the file (authorized_keys) is the user your trying to login too.chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keysMake sure your login into the correct username on the remote machine. specify the username.
i.e. "ssh mike@example.com" instead of "ssh example.com" -
@Jerry-Garcia Yes, I did copy paste. ssh-copy-id worked like a charm. No permission change needed. Thanks so much Jerry!