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

Re: problems with ssh_userauth_list


Hi,

thanks for your reply. i call ssh_userath_none.

Here is a small snippet from our program:

if(!session)

{

qDebug()<<"Session not established";

qDebug()<<"SSH Error 12:",ssh_get_error(session);

return-1;

}

rc=ssh_userauth_none(session,NULL);

method=ssh_userauth_list(session,NULL);

qDebug()<<"method:"<<QString::number(method);

if(method&SSH_AUTH_METHOD_PASSWORD)

{ ....



Am 05.05.2017 um 10:22 schrieb Tilo Eckert:
http://api.libssh.org/stable/group__libssh__auth.html#ga35d44897a44b4bb3b7c01108c1812a37

You either did not call ssh_userauth_none() before or the server does
not allow any of the supported auth methods.

Regards
Tilo

Am 05.05.2017 um 09:26 schrieb Daniel Kroker:
Hi,

we have the problem that in some cases ssh_userauth_list(session,NULL);
returned 0.
What is 0 exacly?


--
Mit freundlichen Grüßen
Daniel Kroker

VENTAS AG                            20+ Jahre ERP-Erfahrung!
Web: www.ventas.de
Fon: 040 / 32 33 34 0
Fax: 040 / 32 33 34 38
Firmensitz: Neuer Wall 10, 20354 Hamburg, Deutschland
Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712
Vorstandsvorsitzender: Dipl. Ing. Alain Siverly
Aufsichtsratsvorsitzender: Dr. Olaf Rehme


Follow-Ups:
Re: problems with ssh_userauth_listTilo Eckert <tilo.eckert@xxxxxxx>
References:
problems with ssh_userauth_listDaniel Kroker <dk@xxxxxxxxx>
Re: problems with ssh_userauth_listTilo Eckert <tilo.eckert@xxxxxxx>
Archive administrator: postmaster@lists.cynapses.org