Skip to content

Commit

Permalink
add -e option to rsync cmd when we need to specify the ssh port
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcTreySonos authored and kali committed Jun 18, 2020
1 parent b338d91 commit bb1dba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dinghy-lib/src/ssh/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl SshDevice {
command.arg(&format!("--rsync-path={}", rsync));
command.arg("-a").arg("-v");
if let Some(port) = self.conf.port {
command.arg(&*format!("ssh -p {}", port));
command.arg("-e").arg(&*format!("ssh -p {}", port));
};
if !log_enabled!(::log::Level::Debug) {
command.stdout(::std::process::Stdio::null());
Expand Down

0 comments on commit bb1dba8

Please sign in to comment.