I am trying to set up private key validation on my server. I think this is a simple question, I just don't want to get locked out of the server by mistake. I generated an ssh key with ssh-keygen, it just looks different from the tutorial I am watching on deployment. It is just a long list of characters as such :
-----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAA..etc -----END OPENSSH PRIVATE KEY-----
However, the video I am watching on deployment shows an ssh key like such:
ssh-rsa b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAA..etc USER@desktop2FBF
I am not sure if they look different because I am on a mac and the guide is using windows. But my key does not begin with
ssh-rsa or end with
USER@... Also, I see there are two files created with this command, the .pub one I cannot open, so I assume I am copying and pasting the key from the right file(the only one I can open).
Thanks for any help.