aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c_exec.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/c_exec.go b/c_exec.go
index e759acc..19bd0a0 100644
--- a/c_exec.go
+++ b/c_exec.go
@@ -71,6 +71,9 @@ func format_ssh(host *HostNode) []string {
if len(host.Priv) > 0 {
cmd_fmt = append(cmd_fmt, "-i", host.Priv)
}
+ if len(host.Jump) > 0 {
+ cmd_fmt = append(cmd_fmt, "-J", host.Jump)
+ }
if host.Port != 0 {
cmd_fmt = append(cmd_fmt, "-p", strconv.Itoa(int(host.Port)))
}