Skip to content

Commit

Permalink
Add a HostKeyAlgorithms key to our SSH configuration (#1960)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramiro Berrelleza <rberrelleza@gmail.com>
  • Loading branch information
rberrelleza committed Nov 11, 2021
1 parent e06fd24 commit 7e0a3a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ssh/config.go
Expand Up @@ -52,6 +52,7 @@ const (
hostNameKeyword = "HostName"
portKeyword = "Port"
strictHostKeyCheckingKeyword = "StrictHostKeyChecking"
hostKeyAlgorithms = "HostKeyAlgorithms"
userKnownHostsFileKeyword = "UserKnownHostsFile"
identityFile = "IdentityFile"
)
Expand Down
1 change: 1 addition & 0 deletions pkg/ssh/ssh.go
Expand Up @@ -45,6 +45,7 @@ func add(path, name, iface string, port int) error {
host.params = []*param{
newParam(forwardAgentKeyword, []string{"yes"}, nil),
newParam(pubkeyAcceptedKeyTypesKeyword, []string{"+ssh-rsa"}, nil),
newParam(hostKeyAlgorithms, []string{"+ssh-rsa"}, nil),
newParam(hostNameKeyword, []string{iface}, nil),
newParam(portKeyword, []string{strconv.Itoa(port)}, nil),
newParam(strictHostKeyCheckingKeyword, []string{"no"}, nil),
Expand Down

0 comments on commit 7e0a3a4

Please sign in to comment.