Skip to content

Commit

Permalink
add error (#3833)
Browse files Browse the repository at this point in the history
Co-authored-by: int7 <[email protected]>
  • Loading branch information
blizard863 and int7 authored Dec 7, 2023
1 parent 1bc9d1a commit e66e77c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ssh/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func NewGateway(
sshConfig.PublicKeyCallback = func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
authorizedKeysMap, err := loadAuthorizedKeysFromFile(cfg.AuthorizedKeysFile)
if err != nil {
log.Error("load authorized keys file error: %v", err)
return nil, fmt.Errorf("internal error")
}

Expand Down

0 comments on commit e66e77c

Please sign in to comment.