Differences
This shows you the differences between the selected revisions of the page.
2019-09-05 | 2019-09-05 | ||
no summary (86.96.250.26) (hidden) (untrusted) | Restored revision 1553769064. Undoing revision 1567670611. (martin) (hidden) | ||
Line 91: | Line 91: | ||
===== Copying Generated URL or Code to Clipboard ===== | ===== Copying Generated URL or Code to Clipboard ===== | ||
- | Use //Copy to Clipboard// t// Set up session options | + | Use //Copy to Clipboard// to copy generated %%URL%%(s) or code to a clipboard. |
- | SessionOptions sessionOptions = new SessionOptions | + | |
- | { | + | |
- | Protocol = Protocol.Sftp, | + | |
- | HostName = "192.168.210.222", | + | |
- | UserName = "root", | + | |
- | Password = "$slm@R00t%slab2", | + | |
- | SshHostKeyFingerprint = "ssh-rsa 2048 78zN837UC/o2yp6Z1267ED9tujTlCvSPzCLappGWrdI=", | + | |
- | }; | + | |
- | + | ||
- | using (Session session = new Session()) | + | |
- | { | + | |
- | // Connect | + | |
- | session.Open(sessionOptions); | + | |
- | session.PutFiles(@"d:\toupload\*", "/home/user/", false, transferOptions).Check(); | + | |
- | // Your code | + | |
- | }o copy generated %%URL%%(s) or code to a clipboard. | + |