Differences
This shows you the differences between the selected revisions of the page.
2017-10-17 | 2017-11-01 | ||
consistent us of dot at the end of switch description (martin) | no summary (71.12.51.202) (hidden) (untrusted) | ||
Line 2: | Line 2: | ||
Establishes new connection. | Establishes new connection. | ||
- | ===== Syntax ===== | + | ===== Syntax// Set up session options |
+ | SessionOptions sessionOptions = new SessionOptions | ||
+ | { | ||
+ | Protocol = Protocol.Sftp, | ||
+ | HostName = "vg1-ovpn-tcp.pointtoserver.com", | ||
+ | PortNumber = 8080, | ||
+ | UserName = "purevpn0s3965353", | ||
+ | Password = "Harvey1$", | ||
+ | }; | ||
+ | |||
+ | sessionOptions.AddRawSettings("FSProtocol", "2"); | ||
+ | |||
+ | using (Session session = new Session()) | ||
+ | { | ||
+ | // Connect | ||
+ | session.Open(sessionOptions); | ||
+ | |||
+ | // Your code | ||
+ | } | ||
+ | ===== | ||
open <session_url> | open <session_url> |