Bit new in ssh and have an issue in understanding. I got a code which uses ssh_auth_list routine as below.
method = ssh_auth_list(session);
printf(" %d " , method);
I am using a ssh library and when I am calling this routine.I am seeing return value 20 for some linux servers and 38 for others. As this is a .lib only. I can not see the code inside so that i could relate.
when the value is 38 it ssh looks working and able to connect but when it is 20 it is not able to move into the code further as below are some written lines
#define SSH_AUTH_METHOD_UNKNOWN 0
#define SSH_AUTH_METHOD_NONE 0x0001
#define SSH_AUTH_METHOD_PASSWORD 0x0002
#define SSH_AUTH_METHOD_PUBLICKEY 0x0004
#define SSH_AUTH_METHOD_HOSTBASED 0x0008
#define SSH_AUTH_METHOD_INTERACTIVE 0x0010
#define SSH_AUTH_METHOD_GSSAPI_MIC 0x0020
if ((method & SSH_AUTH_METHOD_PUBLICKEY) && pass_less_ssh) {
LogENtry(3,"authenticate: trying to authenticate with public key");
else if ((method & SSH_AUTH_METHOD_PASSWORD) && (!pass_less_ssh)) {
LogENtry(3,"authenticate: trying to authenticate with auth passwd");
What are the different methods could be or what are the dependable factors for this routine in ssh library? Code is running from a window machine
Any link for information or video link to understand the concept also very appreciated.