diff --git a/main.go b/main.go index 1206e670..b07c844e 100644 --- a/main.go +++ b/main.go @@ -189,7 +189,7 @@ func main() { } }() } - err := ssh.ListenAndServe(fmt.Sprintf(":%d", Config.Port), nil, ssh.HostKeyFile(Config.KeyFile), + err = ssh.ListenAndServe(fmt.Sprintf(":%d", Config.Port), nil, ssh.HostKeyFile(Config.KeyFile), ssh.PublicKeyAuth(func(ctx ssh.Context, key ssh.PublicKey) bool { return true // allow all keys, this lets us hash pubkeys later }),