The recent beta version of OpenSSH on Windows 10 does not accept my openssh formatted private key:
The same key works on ssh shipped with git shell
from github.
Is there a format option for openssh on Windows that I'm missing or is this a bug?
The recent beta version of OpenSSH on Windows 10 does not accept my openssh formatted private key:
The same key works on ssh shipped with git shell
from github.
Is there a format option for openssh on Windows that I'm missing or is this a bug?
I got this working.. believe it or not by adding a single LF at the end of your private key file. E.G
-----BEGIN OPENSSH PRIVATE KEY-----
KEY
-----END OPENSSH PRIVATE KEY-----
Without the LF the private key worked fine with putty, secureCRT, WinSCP, GIT etc... but Windows (which is used by VisualCode) Kept giving me "invalid Format"
Windows 10 currently (as of January 2018) only supports ed25519 keys (reference: https://github.com/PowerShell/Win32-OpenSSH/issues/973). I see that you are trying to connect to Amazon Web Services. If you manage your key using the AWS console, you can only use an RSA key.
However, if you are trying to connect to an existing EC2 instance, you can do the following:
I had a similar issue. I copied it id_rsa from Linux to Windows 10. I knew that it was probably line-terminating issue. So I downloaded dos2unix for Windows https://waterlan.home.xs4all.nl/dos2unix.html, and ran dos2unix id_rsa
, and it worked afterwards.
try this
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_rsa -C "your email"
and catch the folder with this command
cat ~/.ssh/id_rsa.pub
hope this help.