Skip to content

Commit

Permalink
perf: update HostKeyAlgos
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Dec 27, 2024
1 parent 6815ed2 commit d35ec46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jmstool ssh [email protected] -p 2222
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
Config: gossh.Config{Ciphers: sshConfig.Ciphers, KeyExchanges: sshConfig.KexAlgos, MACs: sshConfig.MACs},
Timeout: 30 * time.Second,
HostKeyAlgorithms: supportedHostKeyAlgos,
HostKeyAlgorithms: sshConfig.HostKeyAlgos,
}
client, err := gossh.Dial("tcp", net.JoinHostPort(host, port), config)
if err != nil {
Expand Down

0 comments on commit d35ec46

Please sign in to comment.