Invalid Windows 10 OpenSSH Key Format

The recent beta version of OpenSSH on Windows 10 does not accept my private formatted private key:

enter image description here

The same key works on ssh sent with git shell from github.

Is there a formatting option for opensh on Windows that I am missing or is this an error?

+11
source share
2 answers

Currently, Windows 10 (as of January 2018) only supports ed25519 keys (link: 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 the RSA key.

However, if you are trying to connect to an existing EC2 instance, you can do the following:

  1. Create a private / public key in Windows cmd using the ssh-keygen command if you have not already done so. The key pair is stored in the id_ed25519.pub and id_ed25519 files in your .ssh directory
  2. Connect to your AWS EC2 instance. Add the contents of id_ed25519.pub to your author_keys file in the .ssh directory.
  3. Now you can connect to your EC2 instance using the Windows 10 SSH client.
+7
source

try it

 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 helps.

0
source

Source: https://habr.com/ru/post/1274135/


All Articles