Keys not loaded or generated - WeOnlyDo Discussion board

Keys not loaded or generated (wodSFTP / wodSFTP.NET / wodSFTPdll)

by BenGl, Friday, August 09, 2019, 21:21 (201 days ago)

Trying to connect to a difficult SFTP server. They say their server doesn't work with WinSCP and a few other common clients, and doesn't work with PuTTy...it works with CUTE FTP and others...

I used wodKeys to make a DSA key pair. They said the public key has to use OpenSSH, so I used wodKeys.PublicKeyOpenSSH and they accepted the key.

I am able to Connect to the server, but when I try PUT a Test.txt file, I get error "Keys not loaded or generated".

Dim wodKeys As Keys
Set wodKeys = New Keys
wodKeys.Load PRIVATE_KEY_PATH
wodSFTP.Authentication = authPubkey
wodSFTP.PrivateKey = wodKeys
wodSFTP.HostName = HOST_NAME
wodSFTP.Login = LOGIN
wodSFTP.Blocking = True 'Use synchronous connections
wodSFTP.Connect

wodSFTP.PutFile "D:\\Test.txt" 'ERROR OCCURS HERE

wodSFTP.Disconnect


Complete thread: