[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SUPPORT REQUEST] Configuration of libssh host key algos on client



----- Original Message -----
> From: "Sebastian Kraust" <sebastian.kraust@xxxxxxxxxx>
> To: libssh@xxxxxxxxxx
> Sent: Monday, May 25, 2020 5:52:15 PM
> Subject: [SUPPORT REQUEST] Configuration of libssh host key algos on client
> 
> Hello libssh-team,
> 
> I am currently working on a project using libssh under the hood, but have
> problems to get it to work. I hope you can provide some help.
> 
> Task
> Write a client for an existing server which cannot be changed/configured by
> me.
> 
> Approach
> Connect to the server using the function `ssh_connect`.
> 
> Error
> kex error : no match for method server host key algo: server [ssh-rsa],
> client
> [ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256]
> 
> Problem
> Due to the restriction that I can only change the client side, I have to
> change the client so that it accepts the ssh-rsa algo.
> According to the docs, it should be capable of doing so.
> 
> Troubleshooting so far
> Added
> PubkeyAcceptedKeyTypes ssh-ed25519*,ssh-rsa*,ssh-dss*,ecdsa-sha2
> to /etc/ssh/sshd_config to allow every algo on the client side.
> 
> I still get the same error. I do believe that the config might not be the
> correct file to configure libssh.
> 
> Can you give me some direction where I have to configure libssh so that the
> client also accepts the ssh-rsa algorithm? If you need more information,
> please let me know.

Hello,

Have you tried to add the configuration locally at user's ~/.ssh/config file?

Regards,
Anderson


Follow-Ups:
AW: [SUPPORT REQUEST] Configuration of libssh host key algos on clientSebastian Kraust <sebastian.kraust@xxxxxxxxxx>
References:
[SUPPORT REQUEST] Configuration of libssh host key algos on clientSebastian Kraust <sebastian.kraust@xxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org