Ssh connector issue

Hello,

I try to test a new ssh connector but I received this error:

If I use same key from cmd it is working fine.
The target ssh server suport this:
| ssh2-enum-algos:
| kex_algorithms: (10)
| curve25519-sha256
| curve25519-sha256@libssh.org
| ecdh-sha2-nistp256
| ecdh-sha2-nistp384
| ecdh-sha2-nistp521
| diffie-hellman-group-exchange-sha256
| diffie-hellman-group16-sha512
| diffie-hellman-group18-sha512
| diffie-hellman-group14-sha256
| kex-strict-s-v00@openssh.com
| server_host_key_algorithms: (5)
| rsa-sha2-512
| rsa-sha2-256
| ssh-rsa
| ecdsa-sha2-nistp256
| ssh-ed25519
| encryption_algorithms: (6)
| chacha20-poly1305@openssh.com
| aes128-ctr
| aes192-ctr
| aes256-ctr
| aes128-gcm@openssh.com
| aes256-gcm@openssh.com
| mac_algorithms: (10)
| umac-64-etm@openssh.com
| umac-128-etm@openssh.com
| hmac-sha2-256-etm@openssh.com
| hmac-sha2-512-etm@openssh.com
| hmac-sha1-etm@openssh.com
| umac-64@openssh.com
| umac-128@openssh.com
| hmac-sha2-256
| hmac-sha2-512
| hmac-sha1
| compression_algorithms: (2)
| none
|_ zlib@openssh.com

The key was generates with "ssh-keygen -t rsa-sha2-512" and the EM version is Professional 5.7.2.4

Can you tell me what I miss ?

Thank you,
Radu.

Hi.

The key was generates with "ssh-keygen -t rsa-sha2-512" and the EM version is Professional 5.7.2.4
Can you tell me what I miss ?

Here is a good manual on how to configure the SSH key-based authentication How To Configure SSH Key-Based Authentication on a Linux Server | DigitalOcean

Key points:

  1. Generate ssh keypair

  2. Enable PubkeyAuthentication in /etc/ssh/sshd_config


PubkeyAuthentication yes

  1. Restart sshd

systemctl restart sshd

  1. Add pub key to ~/.ssh/authorized_keys

Currently EasyMorph supports the RSA PRIVATE KEY private key format for RSA keys.

If your private key file content doesn't start with the -----BEGIN RSA PRIVATE KEY-----, you need to convert the file to a compatible one.

For conversion OPENSSH PRIVATE KEY to RSA PRIVATE KEY , you may use the command


ssh-keygen -p -m PEM -f private_key_file_name

Where private_key_file_name is the name of the private key file.

Alternatively, you can convert your key file using the puttygen utility. Simply navigate to Conversion and select OpenSSH key.
Make sure to backup your key before file format conversion.

That was the problem. The key used to connect from EasyMorph was OPENSSH not RSA. I convert the key and all are good.

Thank you Constantin!

1 Like