This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const string host = "domainna.me"; | |
| const string username = "chucknorris"; | |
| const string password = "norrischuck"; | |
| const string workingdirectory = "/highway/hell"; | |
| const string uploadfile = @"c:\yourfilegoeshere.txt"; | |
| Console.WriteLine("Creating client and connecting"); | |
| using (var client = new SftpClient(host, port, username, password)) | |
| { | |
| client.Connect(); |