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

Authentication


Hi,
I can login with ssh command line:
ssh -i /custom-dir/ssh_keys/myPrivateKey somehost

But libssh ssh_userauth_try_publickey() keep answering (1- SSH_AUTH_DENIED):
'Error :Access denied for ''publickey''. Authentication that can continue:
publickey,gssapi-keyex,gssapi-with-mic,password'

Also ssh_session_is_known_server_() answer 1 (SSH_KNOWN_HOSTS_OK).

It seems that the server does not accept my public key but i'm able to
login with ssh.

Any hint on this ?

regards,
bruno

PS: i'm following the steps at:
https://api.libssh.org/stable/libssh_tutor_authentication.html

Follow-Ups:
Re: AuthenticationBruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org