mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-05-20 01:14:51 -06:00
8 lines
253 B
Plaintext
8 lines
253 B
Plaintext
|
#!/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
|