Hi olgkap.
I tried many differnce OS that the Ubuntu, CentOS and openBSD.
But i have received same error "scp no such a file or directory"
I used the implement ver at 7.4.2013.
please check below my source.
FileStream fs = new FileStream(@"Y:\uploadfile", FileMode.Open);
ScpClient scpClient_ciao = new ScpClient("ubuntu1", "user", "password");
scpClient_ciao.Connect();
fs.Position = 0;
scpClient_ciao.Upload(fs, "/export/user/Downloads/uploadfile");
//scpClient_ciao.Upload(fs, "/export/user/Downloads/uploadfile/"); // same error occured
scpClient_ciao.Disconnect();
fs.Close();
I tried many differnce OS that the Ubuntu, CentOS and openBSD.
But i have received same error "scp no such a file or directory"
I used the implement ver at 7.4.2013.
please check below my source.
FileStream fs = new FileStream(@"Y:\uploadfile", FileMode.Open);
ScpClient scpClient_ciao = new ScpClient("ubuntu1", "user", "password");
scpClient_ciao.Connect();
fs.Position = 0;
scpClient_ciao.Upload(fs, "/export/user/Downloads/uploadfile");
//scpClient_ciao.Upload(fs, "/export/user/Downloads/uploadfile/"); // same error occured
scpClient_ciao.Disconnect();
fs.Close();