我正在使用Tamir.SharpSsh
上传文件到ssh服务器,下面的代码,但我得到System.IO.IOException: Pipe closed.
任何线索为什么?C#/ Tamir.SharpSsh:System.IO.IOException:管道关闭
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();
问候 /尼尔斯