Public key on windows machine to ~/.ssh/authorized_keys format
I am probably being stupid but if a client sends me a public key file which looks like:
---- BEGIN SSH2 PUBLIC KEY ----
---- END SSH2 PUBLIC KEY ----
What is the best way to get this into the correct format and into an ~/.ssh/authorized_keys format. I always end up having to manually edit it and then cut and paste it to the format.
Would be great is there was a command which would allow me to upload it onto the server and would then copy it into the ~/.ssh/authorized_keys and it would put it in the right format.
Any help greatly appreciated.