Differences
This shows you the differences between the selected revisions of the page.
2012-01-04 | 2012-01-04 | ||
TransferEventArgs (martin) | Protocols.Sftp + SshHostKey in example (martin) | ||
Line 48: | Line 48: | ||
// Setup session options | // Setup session options | ||
SessionOptions sessionOptions = new SessionOptions(); | SessionOptions sessionOptions = new SessionOptions(); | ||
- | sessionOptions.Protocol = SessionProtocols.Sftp; | + | sessionOptions.Protocol = Protocols.Sftp; |
sessionOptions.HostName = "example.com"; | sessionOptions.HostName = "example.com"; | ||
sessionOptions.UserName = "user"; | sessionOptions.UserName = "user"; | ||
sessionOptions.Password = "mypassword"; | sessionOptions.Password = "mypassword"; | ||
- | sessionOptions.HostKey = "ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"; | + | sessionOptions.SshHostKey = "ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"; |
// Connect | // Connect |