[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: Paul Beerkens <paul.beerkens@xxxxxxxxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 23 Apr 2019 13:44:07 -0500
- To: libssh@xxxxxxxxxx
I missed the obvious. 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. On Tue, Apr 23, 2019 at 1:40 PM Paul Beerkens < paul.beerkens@xxxxxxxxxxxxxxxxxxxx> wrote: > Further to my ssh_channel_open_session question. Here is the API output: > > ................ > [2019/04/23 13:31:11.527493, 2] ssh_userauth_publickey_auto: Tried every > public key, none matched > [2019/04/23 13:31:11.527502, 2] channel_open: Creating a channel 43 with > 64000 window and 32768 max packet > [2019/04/23 13:*31*:11.528433, 1] ssh_packet_unimplemented: Received > SSH_MSG_UNIMPLEMENTED (sequence number 5) > [2019/04/23 13:*33*:11.516702, 1] ssh_socket_exception_callback: Socket > exception callback: 1 (0) > [2019/04/23 13:33:11.516757, 1] ssh_socket_exception_callback: Socket > error: disconnected > > On Tue, Apr 23, 2019 at 8:45 AM Paul Beerkens < > paul.beerkens@xxxxxxxxxxxxxxxxxxxx> wrote: > >> I am doing some final testing on an application using libSSH. >> >> I created a situation where I make an SSH call to a machine with a user that is not permissioned to go to that server. >> >> This is something that is probably going to happen ocasionally. >> >> >> What I am finding is that it takes two minutes for the *ssh_channel_open_session* call to return with SSH_ERROR. >> >> Is there a way I can make this much faster? I can not see a timeout equivelant function of ssh_channel_open_session. >> >> This is both a problem becuase it is going to clog up my thread pool and because we can not inform the user for several minutes that there is an issue. >> >> >> Do you have any advise on how to deal with a ssh_channel_open_session call taking 2 minutes? >> >> >> Paul >> >> >> >> >> >>
Re: ssh_channel_open_session slow to return | Tilo Eckert <tilo.eckert@xxxxxxx> |
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> |