You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
if grep -qw persistence /proc/cmdline; then
|
|
# With persistence enabled, don't modify the configuration, let the
|
|
# user be in charge...
|
|
exit 0
|
|
fi
|
|
|
|
# Allow PasswordAuthentification in sshd config
|
|
sed -i -e 's|#\?\(PasswordAuthentication\) no|\1 yes|' /etc/ssh/sshd_config
|