I am getting a "The channel has been closed" error when trying to test the upload ability of the SSH class. I've read about turning off compression, but understand it is off by default. The login to the connection works because downloads, lists, etc. all work.
Any thoughts would help me a lot. I have the most recent build og the DLLs.
THE CODE THAT FAILS ========================================
Dim hostname As String = "10.10.0.130"
Dim username As String = "retalixftp"
Dim password As String = "R3tal1x01"
Dim port As Integer = 22
Dim keyPath As String = System.AppDomain.CurrentDomain.BaseDirectory() & "privkey_openssh_unencrypted.pem"
Dim privateKey As SshPrivateKey = New SshPrivateKey(keyPath, "")
sftp.Login("retalixftp", Nothing, privateKey)
' check fingerprint
Dim f As String = sftp.Fingerprint
If f <> "6c:48:31:1a:d1:6c:01:2e:c1:c9:78:c9:d6:36:9d:ae" Then
Dim localPath As String = "C:\RetalixStore\Inbox\test.zip"
Dim remotePath As String = "../inbox/test.zip"
Dim bytes As Long = s.PutFile(localPath, remotePath)
Debug.Print("Received:" & CStr(bytes))