2

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
  • 167,268
  • 50
  • 405
  • 846
user1451111
  • 1,565
  • 2
  • 16
  • 28

1 Answers1

4

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
  • 167,268
  • 50
  • 405
  • 846