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 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();

Viewing all articles
Browse latest Browse all 1729

Latest Images

Trending Articles



Latest Images