On 05.07.24 09:55 , Surya Vasundhara Devi Motamarry wrote:
     While using apachemina for ssh connectivity to server, getting below error 
:

SshException after 2101034762 nanos at read cycle=4: Key type=rsa-sha2-512) not supported by 
parser=[RSABufferPublicKeyParser - supported=[ssh-rsa], DSSBufferPublicKeyParser - supported=[ssh-dss], 
ECBufferPublicKeyParser - supported=[ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521], 
SkECBufferPublicKeyParser - supported=[sk-ecdsa-sha2-nistp...@openssh.com], ED25519BufferPublicKeyParser - 
supported=[ssh-ed25519], OpenSSHCertPublicKeyParser - supported=[ssh-rsa-cert-...@openssh.com, 
ssh-dss-cert-...@openssh.com<mailto:ssh-dss-cert-...@openssh.com>, 
ecdsa-sha2-nistp256-cert-...@openssh.com<mailto:ecdsa-sha2-nistp256-cert-...@openssh.com>, 
ecdsa-sha2-nistp384-cert-...@openssh.com<mailto:ecdsa-sha2-nistp384-cert-...@openssh.com>, 
ecdsa-sha2-nistp521-cert-...@openssh.com<mailto:ecdsa-sha2-nistp521-cert-...@openssh.com>, 
ssh-ed25519-cert-...@openssh.com<mailto:ssh-ed25519-cert-...@openssh.com>], 
SkED25519BufferPublicKeyParser - supported=[sk-ssh-ed25...@openssh.com]]
                 at 
org.apache.sshd.common.util.buffer.Buffer.getRawPublicKey(Buffer.java:570) 
~[sshd-common-2.12.1.jar:2.12.1]

As per the documentation , rsa-sh2-512 is supported by apachemina but in 
RSABufferPublicKeyParser only ssh-rsa is supported. Could you please help me in 
this .

rsa-sha2-512 is a *signature type*, not a *key type*. There are
no "rsa-sha2-512" keys. Even with an "rsa-sha2-512" signature,
it's still a "ssh-rsa" key.

Sounds like a broken server. It should not send "rsa-sha2-512" as
a key type. What's the full stack trace?

Cheers,

  Thomas




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to