[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ssh_channel_open_session slow to return
[Thread Prev] | [Thread Next]
- Subject: Re: ssh_channel_open_session slow to return
- From: Tilo Eckert <tilo.eckert@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 24 Apr 2019 09:56:40 +0200
- To: libssh@xxxxxxxxxx
Am 23.04.2019 um 20:44 schrieb Paul Beerkens: > From an example I copy pasted: > > rc = ssh_userauth_publickey_auto(my_ssh_session, NULL,NULL); > if (rc == SSH_AUTH_ERROR) > > > But that does not cover SS_SSH_AUTH_DENIED. > > > I simply need to change it to cover SSH_AUTH_DENIED. > > > Maybe rc!=SSH_AUTH_SUCCESS is what I will go with. Unless you know exactly which servers you are talking to, you also need to check for SSH_AUTH_PARTIAL because the server might require multiple authentications in a row. If you are operating in non-blocking mode, SSH_AUTH_AGAIN must be checked, too. See API docs: http://api.libssh.org/master/group__libssh__auth.html#ga53e6771b250c061463ed98b6e5b6e0af Regards Tilo
Re: ssh_channel_open_session slow to return | Paul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx> |
ssh_channel_open_session slow to return | Paul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx> |
Re: ssh_channel_open_session slow to return | Paul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx> |
Re: ssh_channel_open_session slow to return | Paul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx> |