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
