Hi Rick,
I'm trying to use the Shareware version of Client Tools to FTP (sftp) to my server.
I believe I'm supposed to use port 23.
I'm getting this error from the oFtp object:
Cannot access a disposed object. Object name: 'Renci.SshNet.SftpClient'.
thisform.oftp.nFtpPort = 23
lnResult = thisform.oFtp.FTPSendFile(;
thisform.cftpservername,;
"_junk.txt",;
thisform.cFtpFolder + "_junk.txt",;
thisform.cftpusername,;
thisform.txtPassword.value;
)
Not sure... Just ran test with known working server (local) so I know it works. Make sure your server f name is correct - ie. just a domain name or ip address.
+++ Rick ---
Thanks, Rick.
Problem was on my end. I was assuming that my FTP accounts that I created on domains that have an SSL cert would be SFTP.
Instead, only my main cpanel user can use SFTP.
Sucks that we get that error message though - a better error message certainly would be nicer.
But the underlying library is not very good at error handling - it handles but doesn't provide deep error info unfortunately. Mainly because SFTP is basically shell driven SSH commands and often the messages returned can't be parsed easily since every server does its own thing.
+++ Rick ---