21

Is there a library that provides the ability to do SCP transfers in C#?

vvvvv
  • 25,404
  • 19
  • 49
  • 81
Malfist
  • 31,179
  • 61
  • 182
  • 269

2 Answers2

18

Have you tried SharpSSH? (last update was 2013)

oo_dev
  • 777
  • 7
  • 20
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
  • 7
    Since that library seems not to be maintained anymore, the best guess today probably is http://sshnet.codeplex.com/ , which is based on SharpSSH and has commits from 2014. (I am just struggling to make SharpSSH work in certain scenarios.) – Andreas Reiff Jun 22 '14 at 16:36
  • @Tobia: Not having used SharpSSH much myself, I can't confirm that. Given that in 2014 there was a suggestion that SharpSSH was no longer maintained, I probably wouldn't try now anywya. – Jon Skeet Nov 15 '18 at 12:00
  • 3
    Yes, I agree. I moved to https://github.com/sshnet/SSH.NET – Tobia Nov 15 '18 at 12:41
6

Use WinSCP .NET Assembly. It is really straight forward.

oo_dev
  • 777
  • 7
  • 20
Farshid
  • 5,134
  • 9
  • 59
  • 87