orchard controller run: introduce --insecure-ssh-no-client-auth (#187)

This commit is contained in:
Nikolay Edigaryev
2024-06-28 23:55:18 +04:00
committed by GitHub
parent ff0497b1d8
commit 8119b22817
5 changed files with 15 additions and 7 deletions
@@ -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)