Refused connection with wodSFTP ActiveX (General questions)
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.
Complete thread:
- Refused connection with wodSFTP ActiveX - DavidO, 2009-02-18, 02:10
- Re: Refused connection with wodSFTP ActiveX - wodDamir, 2009-02-18, 09:15