From 2d44ac359bf338e90dad707f324038b18839b5fe Mon Sep 17 00:00:00 2001 From: Maxime Bouillot Date: Thu, 1 Feb 2024 21:37:43 +0100 Subject: [PATCH] Fix an assignment to err (#216) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }),