FoxPro and .NET Interop
SFTP - Trouble
Gravatar is a globally recognized avatar based on your email address. SFTP - Trouble
  Edward K. Marois
  All
  Feb 22, 2019 @ 12:47pm

Dear Sirs:

I am attempting to make a SFTP connection

  myFTP = CREATEOBJECT('wwSFTP')
  myFTP.Init()
  LOCAL mFTP_SITE AS String
  mFTP_SITE = "sftp.ncb.coop"
  
  myFTP.FtpConnect(mFTP_SITE, THISFORM.mUSER.Value, THISFORM.mPASSWORD.Value) 

  IF myFTP.nError = 1 THEN
    =MESSAGEBOX(myFTP.cErrorMsg))
  ELSE

I am getting the following Error

Unable to connect to SFTP server: Socket read operation has timed out after 30000 milliseconds

What do you think the problem is

Gravatar is a globally recognized avatar based on your email address. re: SFTP - Trouble
  Rick Strahl
  Edward K. Marois
  Feb 22, 2019 @ 01:48pm

If you're getting a socket error you are likely not even reaching the server. Make sure the address is correct and that you're not getting blocked by your firewall or AV software.

+++ Rick ---

© 1996-2024