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

Re: Connection to Libssh Server using command line ssh


Hi,

Server authentication bug :)

After receiving SSH_AUTH_METHOD_NONE if the server answers
ssh_message_reply_default --> everything works as expected and the password
for the user is requested.

thank you anyway

El vie, 18 dic 2020 a las 11:46, Bruno Buzzi Brassesco (<
bruno.brasesco@xxxxxxxxx>) escribió:

> Hi,
> I was able to create a Libssh server :)
> If i connect to the server using my own Libssh client --> i can login with
> user + password (works ok).
>
> But if try to login from ssh Linux command line:
> ssh -o PreferredAuthentications=password myuser@myhost -p 6060
>
> Then the auth method received in the server is SSH_AUTH_METHOD_NONE (1),
> instead of SSH_AUTH_METHOD_PASSWORD (2).
>
> It does not matter the options in the ssh command (i tried hundreds) the
> auth method is always SSH_AUTH_METHOD_NONE (1).
>
> Any idea of what is causing this?
>
> regards,
> bruno
> PS:
> In Linux native sshd the same command prompts a password to be entered.
> ssh -o PreferredAuthentications=password myuser@myhost
>
>

References:
Connection to Libssh Server using command line sshBruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org