Skip to content

Commit

Permalink
always error
Browse files Browse the repository at this point in the history
  • Loading branch information
clever-dan-torczynski committed Mar 14, 2022
1 parent 05922eb commit c8ec0aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions managedserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (m ManagedServer) Start(port int, rawPrivateKeys [][]byte, ciphers, macs []
MACs: macs,
},
PasswordCallback: func(c ssh.ConnMetadata, pass []byte) (*ssh.Permissions, error) {
m.lg.InfoD("handshake-failure-username-password", meta{"username": c.User()})
driver = m.driverGenerator(LoginRequest{
Username: c.User(),
Password: string(pass),
Expand All @@ -117,6 +118,7 @@ func (m ManagedServer) Start(port int, rawPrivateKeys [][]byte, ciphers, macs []
return nil, nil
},
PublicKeyCallback: func(c ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) {
m.lg.InfoD("handshake-failure-username-publickey", meta{"username": c.User()})
driver = m.driverGenerator(LoginRequest{
Username: c.User(),
Password: "",
Expand Down

0 comments on commit c8ec0aa

Please sign in to comment.