EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ElSimpleSSHClientX CRC errors

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#1312
Posted: 09/30/2006 11:11:58
by Ken Ivanov (EldoS Corp.)

I have re-checked the development history of the product and found that build 4.4.94 had certain incompatibilities with VC++. 5.0.98 does not contain those issues, and the demo works fine with it. So I suggest you to install 5.0.98 and continue your development process with it.
#1317
Posted: 10/02/2006 10:36:02
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

I downloaded and installed 5.0.98. Then I copied the following files from the "AXWrappers" folder to the SSHDemo folder:

BaseBBox.h
BaseBBox_i.c
PKIBBox.h
PKIBBox_i.c
SSHBBoxCli.h
SSHBBoxCli_i.c

Then I recompiled the sample (debug) program and got the following errors:

Deleting intermediate files and output files for project 'SSHDemo - Win32 Debug'.
--------------------Configuration: SSHDemo - Win32 Debug--------------------
Creating Type Library...
Processing C:\Program Files\EldoS\SecureBlackbox.AX\Samples\VC\SSHDemo\SSHDemo.odl
SSHDemo.odl
Processing C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS SERVER 2003 R2\INCLUDE\oaidl.idl
oaidl.idl
Processing C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS SERVER 2003 R2\INCLUDE\objidl.idl
objidl.idl
Processing C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS SERVER 2003 R2\INCLUDE\unknwn.idl
unknwn.idl
Processing C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS SERVER 2003 R2\INCLUDE\wtypes.idl
wtypes.idl
Processing C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS SERVER 2003 R2\INCLUDE\basetsd.h
basetsd.h
Processing C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS SERVER 2003 R2\INCLUDE\guiddef.h
guiddef.h
Processing C:\PROGRAM FILES\MICROSOFT PLATFORM SDK FOR WINDOWS SERVER 2003 R2\INCLUDE\oaidl.acf
oaidl.acf
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
BaseBBox_i.c
Generating Code...
Compiling...
BaseEventHandler.cpp
DlgProxy.cpp
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(2845) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3017) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3271) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3423) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4578) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4730) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4946) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(5138) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6883) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6890) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7290) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7315) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(9371) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10515) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10753) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10756) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10765) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10768) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10789) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10792) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11695) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11707) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11743) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11755) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11839) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11851) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
Generating Code...
Compiling...
PKIBBox_i.c
SSHBBoxCli_i.c
Generating Code...
Compiling...
SSHBBoxEventHandler.cpp
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6883) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6890) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7290) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7315) : error C2061: syntax error : identifier 'IElCertificateX'
SSHDemo.cpp
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(2845) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3017) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3271) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3423) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4578) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4730) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4946) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(5138) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6883) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6890) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7290) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7315) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(9371) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10515) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10753) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10756) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10765) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10768) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10789) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10792) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11695) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11707) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11743) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11755) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11839) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11851) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
SSHDemoDlg.cpp
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(2845) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3017) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3271) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(3423) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4578) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4730) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(4946) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(5138) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6883) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(6890) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7290) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(7315) : error C2061: syntax error : identifier 'IElCertificateX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(9371) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10515) : error C2061: syntax error : identifier 'IElStringListX'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10753) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10756) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10765) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10768) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10789) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(10792) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11695) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11707) : error C2061: syntax error : identifier 'TElXSocksVersion'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11743) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11755) : error C2061: syntax error : identifier 'TElXSocksAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11839) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshbboxcli.h(11851) : error C2061: syntax error : identifier 'TElXWebTunnelAuthentication'
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshdemodlg.cpp(403) : warning C4806: '|' : unsafe operation: no value of type 'bool' promoted to type 'int' can equal the given constant
c:\program files\eldos\secureblackbox.ax\samples\vc\sshdemo\sshdemodlg.cpp(522) : warning C4806: '|' : unsafe operation: no value of type 'bool' promoted to type 'int' can equal the given constant
Utils.cpp
Generating Code...
Error executing cl.exe.
Creating browse info file...
SSHDemo.exe - 82 error(s), 2 warning(s)


Please advise what I'm doing wrong now.
#1322
Posted: 10/02/2006 15:50:45
by Ken Ivanov (EldoS Corp.)

This is caused by a bug in MIDL C++ header generation routines. SSHBBoxCli.h must also reference both BaseBBox.h and PKIBBox.h files. Please add the corresponding #includes to SSHBBoxCli.h in the following way:
...
#include "rpc.h"
#include "rpcndr.h"

#include "BaseBBox.h"
#include "PKIBBox.h"

#ifndef __SSHBBoxCli_h__
#define __SSHBBoxCli_h__

#ifdef __cplusplus
....
#1327
Posted: 10/02/2006 17:23:50
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

That fixed the compile errors, thanks. Unfortunately the demo still doesn't work. It seems to be looping in OnButtonConnect. I added some TRACE statements and here's the output:

CSSHDemoDlg::CreateSSHControls
CSSHDemoDlg::OnButtonconnect
CSSHDemoDlg::CreateAndSetupSocket
Loaded 'C:\WINDOWS\SYSTEM32\mswsock.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\hnetcfg.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM32\wshtcpip.dll', no matching symbolic information found.
CSSHDemoDlg::Log Connecting to remote host...
CSSHDemoDlg::Log Connected
CSSHDemoDlg::PrepareSSHClient
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... several times

CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... several times

CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... several times

CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::Log Server key received
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... several times

CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... many times

CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... several times

CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... many times

CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::SocketReadable
SocketReadable() = true
CSSHDemoDlg::OnElSSHClientReceive
CSSHDemoDlg::Log Authentication type 16 failed
CSSHDemoDlg::Log Authentication type 2 failed
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::OnElSSHClientSend
CSSHDemoDlg::SocketReadable
SocketReadable() = false

... forever!!!

Any ideas?
#1334
Posted: 10/03/2006 01:10:47
by Ken Ivanov (EldoS Corp.)

Quote
CSSHDemoDlg::Log Authentication type 16 failed
CSSHDemoDlg::Log Authentication type 2 failed

These lines mean that both keyboard-interactive and public key authentication types failed. Most likely, your server does not support basic password-based authentication (and the demo supports only this authentication type). Please try to add the keyboard-interactive authentication handler and check if it solves the issue. Keyboard-interactive authentication support can be added in the following way:
1. Open the SSHDemoDlg.cpp file and find the body of OnElSSHClientAuthenticationKeyboard method.
2. The Prompts parameter of this method contains a number of questions from server (usually, 'username:' and 'password:'). These questions should be displayed to user. His answers should be put to the Responses parameter then.

Actually (as a quick check), you just can try to add two lines (username and password, accordingly) to the Responses string list and check if it helps:
Code
CString username, password;
BSTR bstr;
long r;
// passing username
username = "testuser";
bstr = username.AllocSysString();
Responses->Add(bstr, &r);
SysFreeString(bstr);
// passing password
password = "testpass";
bstr = password.AllocSysString();
Responses->Add(bstr, &r);
SysFreeString(bstr);
#1336
Posted: 10/03/2006 08:37:37
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Actually it's just the opposite - my server ONLY supports password authentication. Also, I can log in with my own application (the one that's getting the CRC errors) using password authentication. It seems to me that the demo is hanging on the password authentication.

Mike
#1338
Posted: 10/03/2006 08:58:03
by Ken Ivanov (EldoS Corp.)

Well, basing on the log you provided, the server also supports public-key and keyboard-interactive authentication types... However, please try to disable keyboard-interactive and public-key authentication types (m_Client->DisableAuthenticationType(SSH_AUTH_TYPE_KEYBOARD)), and check if the client is able to connect.

BTW, does the OnError event fire during negotiation?
#1339
Posted: 10/03/2006 09:18:32
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

I added the following two lines of code to the PrepareSSHClient function:

m_Client->DisableAuthenticationType(SSH_AUTH_TYPE_KEYBOARD);
m_Client->DisableAuthenticationType(SSH_AUTH_TYPE_PUBLICKEY);

Now it connects correctly. Can you please explain to me why it doesn't connect without these two lines.

Cheers!
Mike
#1340
Posted: 10/03/2006 09:38:00
by Ken Ivanov (EldoS Corp.)

Hmm, it needs further investigation. We will try to reproduce the issue in our conditions and answer you as soon as possible.

BTW, do you know the name of the software that runs on a server side? It would be also excellent if your server is accessible over Internet -- then we could try to reproduce the problem connecting directly to it.
#1343
Posted: 10/03/2006 10:37:27
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

The first response from the server is "SSH-1.99-OpenSSH_3.1p1" if that's what you need.

I can provide the IP address of the server but not in a public forum. I can't, however provide a username and password.

One other thing, I can recreate this with my own application if I remove the code that disables all authentications except password.

Mike
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 21842 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!