Refused connection with wodSFTP ActiveX - WeOnlyDo Discussion board

Refused connection with wodSFTP ActiveX (General questions)

by DavidO, Wednesday, February 18, 2009, 02:10 (5757 days ago)

Dear Sirs:

I got your email from the online forum. I am writing a C++ dll (VC++ 6.0) using the demo version of your ActiveX component, and cannot connect with the server. My code is as follows:

m_wodSFTP.put_Login((LPCSTR)strUserId);
m_wodSFTP.put_Password((LPCSTR)strPassword);
m_wodSFTP.put_Authentication(CWodsftp::authPassword);
m_wodSFTP.put_LocalPath((LPCSTR)strLocalFile);
m_wodSFTP.put_Hostname((LPCSTR)strServerName);
m_wodSFTP.put_Port(22);
m_wodSFTP.put_RemotePath( / );
m_wodSFTP.put_TransferMode(CWodsftp::AscII);

COleVariant var1,var2;
var1 = m_wodSFTP.get_Hostname();
var2.iVal = m_wodSFTP.get_Port();
var2.vt = VT_I2;
m_wodSFTP.Connect(var1,var2);

where most of the settings are of type CString. After Connect() I get the Connected event with error = 10061 and errorcode = “Connection Refused . . .”. I am able to connect with the SFTP console program (but not with your Sample C:Program FilesWeOnlyDo.ComSFTPSamplesVCMFC1. SimpleDebug). Could you please help?

Also, I understand that the demo version would not have full functionality, but could I connect to a test server in order to debug my code, at least as far as the connection routines are concerned? Of course, I’d prefer if I could upload and download as well, although I’d understand if such is prohibited. Please include with your response credentials I may use to connect to your test server.

Thank You.

Re: Refused connection with wodSFTP ActiveX

by wodDamir, Wednesday, February 18, 2009, 09:15 (5757 days ago) @ DavidO

Hi David,

The error you mention means that there is no server running on port 22 on the specified machine. Are you sure that you are using the correct port?

As for credentials for test server, can you please contact us on techsupport@weonlydo.com ?

Regards,
Damba