From b34fca8215bc053d1b94559fb5d07e8ab6f41579 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 18 Dec 2023 20:20:20 +0100 Subject: good ssh --- c_exec.go | 3 +++ 1 file changed, 3 insertions(+) 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))) } -- cgit v1.2.3