Add banner
This commit is contained in:
parent
124f39d1c8
commit
c41be0072c
Binary file not shown.
|
@ -80,6 +80,13 @@ rc-service networking start
|
||||||
## we use some bundled or optionaly provided keys to avoid generation at boot and save time
|
## we use some bundled or optionaly provided keys to avoid generation at boot and save time
|
||||||
apk add openssh
|
apk add openssh
|
||||||
|
|
||||||
|
# banner file
|
||||||
|
cat <<-EOF > /tmp/.trash/banner
|
||||||
|
|
||||||
|
Alpine Linux headless bootstrap v$VERSION by macmpi
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
# bundled temporary keys are moved in RAM /tmp so they won't be stored
|
# bundled temporary keys are moved in RAM /tmp so they won't be stored
|
||||||
# within permanent config later (new ones will then be generated)
|
# within permanent config later (new ones will then be generated)
|
||||||
mv /etc/ssh/ssh_host_*_key* /tmp/.trash/.
|
mv /etc/ssh/ssh_host_*_key* /tmp/.trash/.
|
||||||
|
@ -89,6 +96,7 @@ cat <<-EOF >> /etc/ssh/sshd_config
|
||||||
AuthenticationMethods none
|
AuthenticationMethods none
|
||||||
PermitEmptyPasswords yes
|
PermitEmptyPasswords yes
|
||||||
PermitRootLogin yes
|
PermitRootLogin yes
|
||||||
|
Banner /tmp/.trash/banner
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# inject optional custom keys (those might be stored)
|
# inject optional custom keys (those might be stored)
|
||||||
|
|
Loading…
Reference in New Issue