Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void SSHDelete()
- {
- const String host = "212.237.20.10";
- const String username = "root";
- const String password = "T{1*z1#oye";
- const int port = 22;
- using (SftpClient sftp = new SftpClient(host, port, username, password))
- {
- sftp.Connect();
- sftp.DeleteFile("/home/photos/2.jpg");
- sftp.Disconnect();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement