mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-05-09 03:03:35 -06:00
6a02a17902
Former-commit-id: e62f136f3677cb73bfa2d22f9ff10e8c0745bcc3
8 lines
253 B
Bash
Executable file
8 lines
253 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Allow PasswordAuthentification in sshd config
|
|
sed -i -e 's|#\?\(PasswordAuthentication\) no|\1 yes|' /etc/ssh/sshd_config
|
|
|
|
# Allow root login with password
|
|
sed -i -e 's|#\?\(PermitRootLogin\) prohibit-password|\1 yes|' /etc/ssh/sshd_config
|