Posted: 2012-11-15 16:28
I need to upload some files to a server that only understands Sftp SSH-1.
Before asking the question, an update to SSH-2 is not possible.
I can connect to the server successfully with the desktop tool of WinSCP if I
choose the preferred SSH version 1, but how I do it via .Net.
When running the code below I get the exception "Incoming packet was garbled on decryption"
Thanks in advance.
SessionOptions sessionOptions = new SessionOptions
Protocol = Protocol.Sftp,
HostName = "192.168.1.230",
PortNumber = 22,
UserName = "root",
Password = "xxxxxxxxxxx",
SshHostKeyFingerprint = null,
using (WinSCP.Session session = new WinSCP.Session())
session.DefaultConfiguration = false;
Posted: 2012-11-16 12:55
After I have experimented a lot, I have it figured out:
Location: Prague, Czechia
Thanks for your post.
I have added this to the documentation:
You can post new topics in this forum
And it's free!