Hi Oleg,
The fix in 22896 works for uploading a file, but doesn't work when uploading a directory:
The fix in 22896 works for uploading a file, but doesn't work when uploading a directory:
using (var c = new ScpClient("host", "user", "password"))
{
c.Connect();
var di = new DirectoryInfo(@"c:\toupload");
// FAILS - scp: error: unexpected filename: /var/wwwroot
c.Upload(di, "/var/wwwroot");
c.Disconnect();
}