donj91711
I can connect to the client OK, but when I try to upload a file I get: Method 'UploadFile' of object 'ISDTPConnection' failed
The code:
Public objSSH As sfFTPLib.SSHConnection
Call objSSH.Connect
Call objSFTP.UploadFile(FileName, FileName, RestartLow, RestartHi)
The log:
2015-03-23T14:01:16 SmartFTP FTP Library 4.0.456.0
2015-03-23T14:01:16 Resolving host name "<ftp site>"
2015-03-23T14:01:16 Connecting to <IP address> Port: 22
2015-03-23T14:01:16 Connected to <ftp site>.
2015-03-23T14:01:16 SSH protocol version reply. Client Id: SSH-2.0-SmartFTP
2015-03-23T14:01:16 SSH-2.0-1.36_sshlib EITS
2015-03-23T14:01:16 Starting SSH session. Remote Id: "SSH-2.0-1.36_sshlib EITS"
2015-03-23T14:01:16 Server Algorithm Suite
Key Exchange: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
Server Host Key: ssh-dss
Client to Server Encryption: twofish256-cbc,twofish-cbc,twofish128-cbc,blowfish-cbc,3des-cbc,arcfour,cast128-cbc,aes256-cbc,aes128-cbc,
Server to Client Encryption: twofish256-cbc,twofish-cbc,twofish128-cbc,blowfish-cbc,3des-cbc,arcfour,cast128-cbc,aes256-cbc,aes128-cbc,
Client to Server HMAC: hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
Server to Client HMAC: hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
Client to Server Compression: zlib,none
Server to Client Compression: zlib,none
2015-03-23T14:01:16 Selected Algorithm Suite
Key Exchange: diffie-hellman-group-exchange-sha1
Server Host Key: ssh-dss
Client to Server Encryption: aes128-cbc
Server to Client Encryption: aes128-cbc
Client to Server HMAC: hmac-sha1
Server to Client HMAC: hmac-sha1
Client to Server Compression: zlib
Server to Client Compression: zlib
2015-03-23T14:01:16 Client Algorithm Suite
Key Exchange: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
Server Host Key: ssh-ed25519,x509v3-ecdsa-sha2-nistp256,x509v3-ecdsa-sha2-nistp384,x509v3-ecdsa-sha2-nistp521,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,x509v3-rsa2048-sha256,x509v3-sign-rsa,x509v3-sign-dss,ssh-rsa,ssh-dss
Client to Server Encryption: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc
Server to Client Encryption: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc
Client to Server HMAC: hmac-sha1,hmac-md5,hmac-sha2-256,hmac-sha2-512
Server to Client HMAC: hmac-sha1,hmac-md5,hmac-sha2-256,hmac-sha2-512
Client to Server Compression: zlib@openssh.com,zlib,none
Server to Client Compression: zlib@openssh.com,zlib,none
2015-03-23T14:01:16 Key Exchange Algorithm: diffie-hellman-group-exchange-sha1
2015-03-23T14:01:18 Server "ssh-dss" host key fingerprint: 36:4d:b0:52:9e:5c:5f:9b:8b:f9:8b:ac:1b:61:5d:e1
2015-03-23T14:01:18 Key exchange completed.
2015-03-23T14:01:18 Requesting service "ssh-userauth".
2015-03-23T14:01:18 RTT: 484.091 ms
2015-03-23T14:01:18 Authentication request. Method: none
2015-03-23T14:01:18 Received authentication banner message.
2015-03-23T14:01:18 Server supported authentications: password,keyboard-interactive
2015-03-23T14:01:18 Authentication request. Method: password
2015-03-23T14:01:18 User authentication successful.
2015-03-23T14:01:18 SSH session established.
2015-03-23T14:01:18 Opening channel 0.
2015-03-23T14:01:19 Channel successfully opened (Local=0, Remote=0).
2015-03-23T14:01:19 Requesting subsystem "sftp" (Local=0, Remote=0).
This used to work fine until I had to move to a new server running Windows 7 which caused me to load the latest version of SmartFTP library.
Any thoughts?
The code:
Public objSSH As sfFTPLib.SSHConnection
Call objSSH.Connect
Call objSFTP.UploadFile(FileName, FileName, RestartLow, RestartHi)
The log:
2015-03-23T14:01:16 SmartFTP FTP Library 4.0.456.0
2015-03-23T14:01:16 Resolving host name "<ftp site>"
2015-03-23T14:01:16 Connecting to <IP address> Port: 22
2015-03-23T14:01:16 Connected to <ftp site>.
2015-03-23T14:01:16 SSH protocol version reply. Client Id: SSH-2.0-SmartFTP
2015-03-23T14:01:16 SSH-2.0-1.36_sshlib EITS
2015-03-23T14:01:16 Starting SSH session. Remote Id: "SSH-2.0-1.36_sshlib EITS"
2015-03-23T14:01:16 Server Algorithm Suite
Key Exchange: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
Server Host Key: ssh-dss
Client to Server Encryption: twofish256-cbc,twofish-cbc,twofish128-cbc,blowfish-cbc,3des-cbc,arcfour,cast128-cbc,aes256-cbc,aes128-cbc,
Server to Client Encryption: twofish256-cbc,twofish-cbc,twofish128-cbc,blowfish-cbc,3des-cbc,arcfour,cast128-cbc,aes256-cbc,aes128-cbc,
Client to Server HMAC: hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
Server to Client HMAC: hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
Client to Server Compression: zlib,none
Server to Client Compression: zlib,none
2015-03-23T14:01:16 Selected Algorithm Suite
Key Exchange: diffie-hellman-group-exchange-sha1
Server Host Key: ssh-dss
Client to Server Encryption: aes128-cbc
Server to Client Encryption: aes128-cbc
Client to Server HMAC: hmac-sha1
Server to Client HMAC: hmac-sha1
Client to Server Compression: zlib
Server to Client Compression: zlib
2015-03-23T14:01:16 Client Algorithm Suite
Key Exchange: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
Server Host Key: ssh-ed25519,x509v3-ecdsa-sha2-nistp256,x509v3-ecdsa-sha2-nistp384,x509v3-ecdsa-sha2-nistp521,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,x509v3-rsa2048-sha256,x509v3-sign-rsa,x509v3-sign-dss,ssh-rsa,ssh-dss
Client to Server Encryption: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc
Server to Client Encryption: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc
Client to Server HMAC: hmac-sha1,hmac-md5,hmac-sha2-256,hmac-sha2-512
Server to Client HMAC: hmac-sha1,hmac-md5,hmac-sha2-256,hmac-sha2-512
Client to Server Compression: zlib@openssh.com,zlib,none
Server to Client Compression: zlib@openssh.com,zlib,none
2015-03-23T14:01:16 Key Exchange Algorithm: diffie-hellman-group-exchange-sha1
2015-03-23T14:01:18 Server "ssh-dss" host key fingerprint: 36:4d:b0:52:9e:5c:5f:9b:8b:f9:8b:ac:1b:61:5d:e1
2015-03-23T14:01:18 Key exchange completed.
2015-03-23T14:01:18 Requesting service "ssh-userauth".
2015-03-23T14:01:18 RTT: 484.091 ms
2015-03-23T14:01:18 Authentication request. Method: none
2015-03-23T14:01:18 Received authentication banner message.
2015-03-23T14:01:18 Server supported authentications: password,keyboard-interactive
2015-03-23T14:01:18 Authentication request. Method: password
2015-03-23T14:01:18 User authentication successful.
2015-03-23T14:01:18 SSH session established.
2015-03-23T14:01:18 Opening channel 0.
2015-03-23T14:01:19 Channel successfully opened (Local=0, Remote=0).
2015-03-23T14:01:19 Requesting subsystem "sftp" (Local=0, Remote=0).
This used to work fine until I had to move to a new server running Windows 7 which caused me to load the latest version of SmartFTP library.
Any thoughts?