mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-22 23:52:12 +03:00
Disable no keypair login.
This commit is contained in:
1 parent
f957079489
commit
bb0c8e9e49
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user