Let's say I create SSH keys in a Mac to connect to my remote server.
My server has my public key. My Mac has my private key.
So far so good.
A few days later, I want to connect to my server by using my Windows PC (WinPC).
It seems to me that there should be 2 ways to connect via my WinPC:
- I should be able to copy my private key over from the Mac to the WinPC and use the private key there. (Update: Is it necessary to convert the Mac keys from OpenSSH to some other format -- e.g. PPK -- for using in the WinPC, or is that not necessary any more?)
- I should be able to generate new SSH keys on my WinPC, and load the new public key to my server.
My questions are:
Am I correct that both the above options are available?
Which is the superior option in general (if any)?