Advertisement
Guest User

Untitled

a guest
Dec 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public void SSHDelete()
  2. {
  3. const String host = "212.237.20.10";
  4. const String username = "root";
  5. const String password = "T{1*z1#oye";
  6. const int port = 22;
  7.  
  8. using (SftpClient sftp = new SftpClient(host, port, username, password))
  9. {
  10. sftp.Connect();
  11. sftp.DeleteFile("/home/photos/2.jpg");
  12. sftp.Disconnect();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement