3

Can I use FtpWebRequest class for SFTP transfers? I am confused if the answer is a YES or NO because I could not find any MSDN link for the appropriate answer.

If the answer is a NO, can you please point me to the correct MSDN link where it is mentioned officially?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
user1451111
  • 1,735
  • 3
  • 18
  • 30

1 Answers1

5

No you cannot.

See FtpWebRequest documentation:

Implements a File Transfer Protocol (FTP) client.

SFTP is not FTP.

See for example Difference between FTP/FTPS/SFTP - Configurable connection to any of them.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992