Skip to content

Commit d35ec46

Browse files
committed
perf: update HostKeyAlgos
1 parent 6815ed2 commit d35ec46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jmstool ssh [email protected] -p 2222
161161
HostKeyCallback: gossh.InsecureIgnoreHostKey(),
162162
Config: gossh.Config{Ciphers: sshConfig.Ciphers, KeyExchanges: sshConfig.KexAlgos, MACs: sshConfig.MACs},
163163
Timeout: 30 * time.Second,
164-
HostKeyAlgorithms: supportedHostKeyAlgos,
164+
HostKeyAlgorithms: sshConfig.HostKeyAlgos,
165165
}
166166
client, err := gossh.Dial("tcp", net.JoinHostPort(host, port), config)
167167
if err != nil {

0 commit comments

Comments
 (0)