Hi All,
Trying to use ScpClient,
filename - stringing full file path/name
trying ScpClient.Upload(FileInfo, String) method - uploaded file size not equals original and have quotes too.
device - RouterOS, (http://mikrotik.com)
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 devicetrying ScpClient.Upload(FileInfo, String) method - uploaded file size not equals original and have quotes too.
device - RouterOS, (http://mikrotik.com)