Differences
This shows you the differences between the selected revisions of the page.
2017-11-01 | 2017-11-01 | ||
no summary (71.12.51.202) (hidden) (untrusted) | Restored revision 1508225279. Undoing revision 1509556056. (martin) (hidden) | ||
Line 2: | Line 2: | ||
Establishes new connection. | Establishes new connection. | ||
- | ===== Syntax// Set up session options | + | ===== Syntax ===== |
- | 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> |