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

New Post: Scp Upload, remote file quotes...

$
0
0
Hi All,

Trying to use ScpClient,

filename - stringing full file path/name
               ScpClient scpClient = new ScpClient(host, username, password);
               scpClient.Connect();
               scpClient.Upload(File.OpenRead(fileName), Path.GetFileName(fileName));
               scpClient.Disconnect();
and got "filename" (with quotes) on remote device

trying ScpClient.Upload(FileInfo, String) method - uploaded file size not equals original and have quotes too.

device - RouterOS, (http://mikrotik.com)

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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