Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: SCP copy to a specific folder

$
0
0
Hi
I'm using your latest commit 22965 and i still get af file not found error. The source file and destination directory exists.

I've tried:
            client.Connect();

            Stream filestream = new FileStream("filename.zip", FileMode.Open, FileAccess.Read); 
            client.Upload(filestream, "/dir/sdcard/"); 
            filestream.Close();

            client.Disconnect();
When i excecute the upload command i get an exception: "scp: : No such file or directory" in line 344 in ScpClient.cs

Renci.SshNet.Common.ScpException was unhandled by user code
Message=scp: : No such file or directory
Source=Renci.SshNet
StackTrace:
   at Renci.SshNet.ScpClient.CheckReturnCode(Stream input)
   at Renci.SshNet.ScpClient.Upload(Stream source, String path)
   at LinkTest.LinkTestFixture.TestUploadLatestFirmwareToLink() in 
C:\Users\k\Desktop\Link\Pc\trunk\LinkTest\LinkTest\LinkTestFixture.cs:line 184 InnerException:

Do you any suggestions to how to solve this problem?
Thanks

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>