Skip to content

Commit 83f0cec

Browse files
authored
fix ssh config error (#2)
the behavior of nil for HostKeyCallback was changed see: golang/go#19767
1 parent 0337fc9 commit 83f0cec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func login(cfg *sshServer) (*ssh.Client, error) {
108108
sshconfig := &ssh.ClientConfig{
109109
User: cfg.User,
110110
Auth: methods,
111+
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
111112
}
112113

113114
return ssh.Dial("tcp", cfg.Addr, sshconfig)

0 commit comments

Comments
 (0)