[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Protocol error: expected packet type 50, got 90
[Thread Prev] | [Thread Next]
- Subject: Re: Protocol error: expected packet type 50, got 90
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 24 Aug 2016 16:06:09 +0200
- To: libssh@xxxxxxxxxx
On 24/08/16 15:46, Andreas Schneider wrote: > On Wednesday, 24 August 2016 16:25:16 CEST Yanis Kurganov wrote: >> libssh 0.7.2 -> Cisco SSH Server. >> Any suggestions are welcome! >> Log file attached. >> >> Code looks like this: >> >> if (ssh_userauth_none(m_Session, 0) != SSH_AUTH_SUCCESS) >> ssh_userauth_password(m_Session, 0, password.c_str()) >> >> m_Channel = ssh_channel_new(m_Session); >> ssh_channel_open_session(m_Channel); > > From your log file: > > ssh_packet_userauth_failure: Access denied. > ssh_packet_userauth_failure: Access denied. > > It should say: > > ssh_packet_userauth_success: Authentication successful > > Maybe start with checking return codes, we provide them for a reason ... > > > -- andreas > We should do more checking to avoid such situations. A "not authenticated" error would be easier to understand that a weird "unexpected packet" message. Aris
Protocol error: expected packet type 50, got 90 | Yanis Kurganov <yanis.kurganov@xxxxxxxxx> |
Re: Protocol error: expected packet type 50, got 90 | Andreas Schneider <asn@xxxxxxxxxxxxxx> |