Skip to content

Commit

Permalink
fix(server): allow keyless
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 2, 2023
1 parent 9c1c342 commit 5403d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func (s *SSHServer) PublicKeyHandler(ctx ssh.Context, pk ssh.PublicKey) bool {
}

// KeyboardInteractiveHandler handles keyboard interactive authentication.
func (s *SSHServer) KeyboardInteractiveHandler(_ ssh.Context, _ gossh.KeyboardInteractiveChallenge) bool {
return true
func (s *SSHServer) KeyboardInteractiveHandler(ctx ssh.Context, _ gossh.KeyboardInteractiveChallenge) bool {
return s.cfg.Backend.AllowKeyless() && s.PublicKeyHandler(ctx, nil)
}

// Middleware adds Git server functionality to the ssh.Server. Repos are stored
Expand Down

0 comments on commit 5403d15

Please sign in to comment.