mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-28 22:49:59 +08:00
Remove -q flag from SCP commands to avoid crush on systems that do not support it
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Renci.SshNet
|
||||
channel.Open();
|
||||
|
||||
// Send channel command request
|
||||
channel.SendExecRequest(string.Format("scp -qt \"{0}\"", filename));
|
||||
channel.SendExecRequest(string.Format("scp -t \"{0}\"", filename));
|
||||
|
||||
this.CheckReturnCode(input);
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Renci.SshNet
|
||||
channel.Open();
|
||||
|
||||
// Send channel command request
|
||||
channel.SendExecRequest(string.Format("scp -qrt \"{0}\"", filename));
|
||||
channel.SendExecRequest(string.Format("scp -rt \"{0}\"", filename));
|
||||
this.CheckReturnCode(input);
|
||||
|
||||
this.InternalUpload(channel, input, directoryInfo, filename);
|
||||
@@ -120,7 +120,7 @@ namespace Renci.SshNet
|
||||
channel.Open();
|
||||
|
||||
// Send channel command request
|
||||
channel.SendExecRequest(string.Format("scp -qpf \"{0}\"", filename));
|
||||
channel.SendExecRequest(string.Format("scp -pf \"{0}\"", filename));
|
||||
this.SendConfirmation(channel); // Send reply
|
||||
|
||||
this.InternalDownload(channel, input, fileInfo);
|
||||
@@ -157,7 +157,7 @@ namespace Renci.SshNet
|
||||
channel.Open();
|
||||
|
||||
// Send channel command request
|
||||
channel.SendExecRequest(string.Format("scp -qprf \"{0}\"", directoryName));
|
||||
channel.SendExecRequest(string.Format("scp -prf \"{0}\"", directoryName));
|
||||
this.SendConfirmation(channel); // Send reply
|
||||
|
||||
this.InternalDownload(channel, input, directoryInfo);
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace Renci.SshNet
|
||||
channel.Open();
|
||||
|
||||
// Send channel command request
|
||||
channel.SendExecRequest(string.Format("scp -qt \"{0}\"", filename));
|
||||
channel.SendExecRequest(string.Format("scp -t \"{0}\"", filename));
|
||||
this.CheckReturnCode(input);
|
||||
|
||||
this.InternalFileUpload(channel, input, source, filename);
|
||||
@@ -195,7 +195,7 @@ namespace Renci.SshNet
|
||||
channel.Open();
|
||||
|
||||
// Send channel command request
|
||||
channel.SendExecRequest(string.Format("scp -qf \"{0}\"", filename));
|
||||
channel.SendExecRequest(string.Format("scp -f \"{0}\"", filename));
|
||||
this.SendConfirmation(channel); // Send reply
|
||||
|
||||
var message = ReadString(input);
|
||||
|
||||
Reference in New Issue
Block a user