I upgraded to the latest .net assembly package, 5.7.0. Same results from the program and the GUI.
The Ipswitch web site (search for MOVEit) has winSCP listed as a supported FTP/SSL client but only partially supported as an FTP/SSH client. My application is VB.NET. What follows demonstrates this.
This works on another server but not on MOVEit
.Protocol = WinSCP.Protocol.Sftp .HostName = My.Settings.Host.Trim .UserName = My.Settings.SAPUID.Trim .SshHostKeyFingerprint = My.Settings.HostFingerprint.Trim .SshPrivateKeyPath = My.Settings.PrivateKeyFile.Trim
This works on MOVEit but I'd rather not have an exposed password
.Protocol = WinSCP.Protocol.Ftp .FtpSecure = WinSCP.FtpSecure.Implicit .HostName = My.Settings.Host.Trim .UserName = My.Settings.SAPUID.Trim .Password = My.Settings.Password.Trim
The server owner is moving from the one that works with SFTP to MOVEit. The private keys are identical on the two servers. The public keys have a PUB extension. Here's the failure point in a Debug 1 log:
. 2015-03-19 13:47:20.735 Offer of public key accepted ! 2015-03-19 13:47:20.735 Authenticating with public key "rsa-key-20140528" . 2015-03-19 13:47:20.906 Sent public key signature . 2015-03-19 13:47:20.906 Waiting for the server to continue with the initialization . 2015-03-19 13:47:20.922 Detected network event ! 2015-03-19 13:47:20.922 Server refused public-key signature despite accepting key! . 2015-03-19 13:47:20.953 Server refused public-key signature despite accepting key! . 2015-03-19 13:47:20.953 Prompt (7, SSH password, , &Password: )
Could it have something to do with the private key permissions? I've had that cause problems.
Thanks in advance.