| |
@@ -1289,6 +1289,10 @@
|
| |
rlFileBackup /etc/ssh/sshd_config
|
| |
rlRun "sed -i 's/^.*PermitRootLogin.*$/PermitRootLogin yes/' /etc/ssh/sshd_config"
|
| |
rlRun "sed -i 's/^.*PasswordAuthentication.*$/PasswordAuthentication yes/' /etc/ssh/sshd_config"
|
| |
+ rlRun "echo 'PasswordAuthentication yes' > /etc/ssh/sshd_config.d/9999-enable-password.conf"
|
| |
+ rlRun "/usr/sbin/sshd -T"
|
| |
+ rlRun "find /etc/ssh"
|
| |
+ rlRun "for i in /etc/ssh/sshd_config.d/*; do echo $i; cat $i; done"
|
| |
rlRun "service sshd restart"
|
| |
}
|
| |
|
| |
DO NOT MERGE