unable to connect! - WeOnlyDo Discussion board

unable to connect! (General questions)

by Shaz Rashid, Monday, March 07, 2005, 11:19 (7012 days ago)


hi, iam using sftp demo version 2.2.2, when iam connecting to remote server the status property is showing a value of 1 (connecting), but it is not changing to 3(connected). Iam unable to perform any operations like getfile, delete etc.

Following is my code.

---------------------------------------------------------------------
Dim WithEvents myftp As wodSFTPCom

Private Sub Command1_Click()
Dim todir As String
Dim fromdir As String

'Set wodSFTP1 = New wodSFTPLibCtl

todir = E:TezRaftar rpisourceFTPTest
fromdir = /FTPTest/

'myftp.HostName = 10.1.124.9
myftp.Login = uid
myftp.Password = uid
myftp.TimeOut = 0


myftp.Connect 10.1.124.9 , 21


myftp.DeleteFile FTPTest/UE230205.006

'myftp.GetFile todir, fromdir

End Sub

Private Sub Form_Load()
Set myftp = New wodSFTPCom
End Sub

Private Sub Form_Unload(Cancel As Integer)
Set myftp = Nothing
End Sub


Re: unable to connect!

by wodSupport, Monday, March 07, 2005, 12:36 (7012 days ago) @ Shaz Rashid

Since you're using component this way, I think setting Blocking = True will solve your problem. Can you try that?

Re: unable to connect!

by Shaz Rashid, Monday, March 07, 2005, 13:35 (7012 days ago) @ wodSupport

I have tried blocking=true but, it is taking too long, application is stuck. What could be the reason. Iam sure the remote server is awake and active.

Since you're using component this way, I think setting Blocking = True will solve your problem. Can you try that?

Re: unable to connect!

by wodSupport, Monday, March 07, 2005, 16:23 (7012 days ago) @ Shaz Rashid

Shaz,

are you absolutely sure you want to connect to SSH server? Can you change timeout from 0 to 30, just to make sure it eventually reports timeout error, instead of freezing?

if you go to command prompt and type

telnet your.host.com 22

what response do you get?