fix: allow password authentication for egress if configured

The 'passwordAllowed' config option is intended to allow password
authentication for egress. However, setting it to true currently has
no effect, because the sshd_config templates set the SSH
'PasswordAuthentication' option to 'no'.

Fix this by manually passing '-o PasswordAuthentication=yes' to SSH
if 'passwordAllowed' is set to true.

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
pull/589/merge
Friedrich Weber 2 weeks ago committed by Stéphane Lesimple
parent c7d903f3aa
commit eed4becc4e

@ -1509,6 +1509,7 @@ else {
push @command, '-A', '-o', 'AddKeysToAgent=yes';
}
push @command, '-o', 'PreferredAuthentications=' . (join(',', @preferredAuths));
push @command, '-o', 'PasswordAuthentication=yes' if $config->{'passwordAllowed'};
if ($config->{'sshClientHasOptionE'}) {
push @command, '-E', $saveFile . '.sshdebug';

Loading…
Cancel
Save