mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-11-28 03:32:25 +03:00
Add KeyboardInteractiveCallback so that even client do now have publickey, username can still be passed in
This commit is contained in:
1 parent
9a2d14066c
commit
2b90eab1d5
1 file changed
+3
@@ -77,6 +77,9 @@ func NewServer(privateKey []byte) (*Server, error) {
|
||||
perm := &ssh.Permissions{Extensions: map[string]string{"fingerprint": fingerprint}}
|
||||
return perm, nil
|
||||
},
|
||||
KeyboardInteractiveCallback: func(conn ssh.ConnMetadata, challenge ssh.KeyboardInteractiveChallenge) (*ssh.Permissions, error) {
|
||||
return nil, nil
|
||||
},
|
||||
}
|
||||
config.AddHostKey(signer)
|
||||
|
||||
|
||||
Reference in new issue
Block a user