Skip to content

Commit

Permalink
Disable strict host key checking in default ssh command
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Laupretre committed Jul 29, 2022
1 parent cf09369 commit e06254a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ But you may need to modify this string if, for instance, you want to:

- specify an absolute path and/or a different name when your SSH client is not in
your path or has a different name (some use 'openssh')
- Add options to pass to the SSH command like, '-o StrictHostKeyChecking=no'
to avoid failures on non-registered bastions or '-i \<key>' to specify an
alternate private key.
- Add options to pass to the SSH command like '-i \<key>' to specify an
alternate private key to use.

Specifying an alternate SSH command is done by setting the 'ssh_cmd' variable
to the command with options.
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ variable "shell_cmd" {
variable "ssh_cmd" {
type = string
description = "Shell command to use to start ssh client"
default = "ssh"
default = "ssh -o StrictHostKeyChecking=no"
}

variable "local_host" {
Expand Down

0 comments on commit e06254a

Please sign in to comment.