Scp Upload, remote file quotes...

Dec 5, 2013 at 12:17 PM
Edited Dec 5, 2013 at 12:22 PM
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)