1

I am trying to send video file from windows10 pc to a raspberry pi (using wi-fi). I can do that with a ssh command "scp". Currently i successed with openssh.

Im using CMD command: "scp myfile.txt pi@192.168.1.3:project/" (i followed this:https://www.raspberrypi.org/documentation/remote-access/ssh/scp.md)

Looks like This

I tried a code like this and it is not working: like this

But what i want is, i want to use this command in a windows form app, cant figured out how to that, i tried SSH.NET with C# but i never used that before and im not experienced with Visual Studio C# because of that im kinda stuck now and dont know what to do or where to look actually.

SSH.NET code that i tried:SSH.NET code

  • You can just run the command from the winforms project. Something along the lines of: https://stackoverflow.com/questions/181719/how-do-i-start-a-process-from-c – shox Aug 13 '20 at 17:00
  • Generally, you wouldn't 'run scp' from C#, you would use a nuget package and implement it in code, which gives you much more control over how copying is going (like error handling, progress bars etc). – Neil Aug 13 '20 at 17:02
  • Yea actually i wish to do it with implementing it in to code, i tried it with SSH.NET but cant make it work and im really inexperianced on this topic :/ – Mustafa Çerçi Aug 13 '20 at 20:37

0 Answers0