mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-01 12:32:11 +02:00
orchard controller run: introduce --insecure-ssh-no-client-auth (#187)
This commit is contained in:
@@ -42,6 +42,7 @@ func NewSSHServer(
|
||||
store storepkg.Store,
|
||||
proxy *proxypkg.Proxy,
|
||||
workerNotifier *notifier.Notifier,
|
||||
noClientAuth bool,
|
||||
logger *zap.SugaredLogger,
|
||||
) (*SSHServer, error) {
|
||||
server := &SSHServer{
|
||||
@@ -58,6 +59,7 @@ func NewSSHServer(
|
||||
server.listener = listener
|
||||
|
||||
server.serverConfig = &ssh.ServerConfig{
|
||||
NoClientAuth: noClientAuth,
|
||||
PasswordCallback: server.passwordCallback,
|
||||
}
|
||||
server.serverConfig.AddHostKey(signer)
|
||||
|
||||
Reference in New Issue
Block a user