C # / Tamir.SharpSsh: System.IO.IOException: pipe is closed

I use Tamir.SharpSsh to upload the file to the ssh server with the code below, but I get a 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(); 

Relationships / Niels

+4
source share
3 answers

For future references: Apparently, the server only accepted Sftp connections. So I changed to:

 SshTransferProtocolBase scp = new Sftp(SSH_HOST, SSH_USER); 
+4
source

I had the same problem ("Pipe Closed") when trying to transfer files.
Go to

 Sftp scp = new Sftp(SSH_HOST, SSH_USER); 

solved a problem.
Thanks
Stefano

+4
source

It looks like this may be related to permissions on the remote server.

0
source

All Articles