-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from srm09/bug/prompt-for-host-key-check
Changes ssh command string for proxy args
- Loading branch information
Showing
2 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,12 @@ func TestSSHRunMakeCmdStr(t *testing.T) { | |
{ | ||
name: "user host pkpath and proxy", | ||
args: SSHArgs{User: "sshuser", Host: "local.host", PrivateKeyPath: "/pk/path", ProxyJump: &ProxyJumpArgs{User: "juser", Host: "jhost"}}, | ||
cmdStr: "ssh -q -o StrictHostKeyChecking=no -i /pk/path -p 22 -J juser@jhost [email protected]", | ||
cmdStr: "ssh -q -o StrictHostKeyChecking=no -i /pk/path -p 22 [email protected] -o \"ProxyCommand ssh -o StrictHostKeyChecking=no -W %h:%p -i /pk/path juser@jhost\"", | ||
}, | ||
{ | ||
name: "user host and proxy", | ||
args: SSHArgs{User: "sshuser", Host: "local.host", ProxyJump: &ProxyJumpArgs{User: "juser", Host: "jhost"}}, | ||
cmdStr: "ssh -q -o StrictHostKeyChecking=no -p 22 [email protected] -o \"ProxyCommand ssh -o StrictHostKeyChecking=no -W %h:%p juser@jhost\"", | ||
}, | ||
{ | ||
name: "missing host", | ||
|