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

Re: ssh_channel_open_session slow to return


Thank you!

On Wed, Apr 24, 2019 at 3:11 AM Tilo Eckert <tilo.eckert@xxxxxxx> wrote:

> 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
>
>

References:
ssh_channel_open_session slow to returnPaul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx>
Re: ssh_channel_open_session slow to returnPaul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx>
Re: ssh_channel_open_session slow to returnPaul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx>
Re: ssh_channel_open_session slow to returnTilo Eckert <tilo.eckert@xxxxxxx>
Archive administrator: postmaster@lists.cynapses.org