I'm using Tamir.SharpSsh to upload a file to a ssh server with the code below but I'm getting System.IO.IOException: Pipe closed. Any clue why?
SshTransferProtocolBase scp = new Scp(SSH_HOST, SSH_USER);
scp.Password = SSH_PASSWORD;
scp.Connect();
foreach (string file in files)
{
string remotePath = "incoming/" + new FileInfo(file).Name;
scp.Put(file, remotePath);
}
scp.Close();
Regards /Niels