mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
core94: allow rootlogin only if the user has not blocked it before.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -44,7 +44,7 @@ extract_files
|
||||
|
||||
# Update SSH configuration
|
||||
sed -i /etc/ssh/sshd_config \
|
||||
-e 's/^#\?PermitRootLogin .*$/PermitRootLogin yes/'
|
||||
-e 's/^#PermitRootLogin yes$/PermitRootLogin yes/'
|
||||
|
||||
# Move away old and unsupported keys
|
||||
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
|
||||
|
||||
Reference in New Issue
Block a user