diff --git a/server.go b/server.go index 205d848..7849541 100644 --- a/server.go +++ b/server.go @@ -81,7 +81,7 @@ func NewServer(privateKey []byte) (*Server, error) { return perm, nil }, KeyboardInteractiveCallback: func(conn ssh.ConnMetadata, challenge ssh.KeyboardInteractiveChallenge) (*ssh.Permissions, error) { - return nil, nil + return nil, fmt.Errorf("Must have an SSH keypair to connect.") }, } config.AddHostKey(signer)