Disable SSH by default

pull/35/head
Serge Schneider 2016-11-23 16:15:22 +00:00
parent 845496123b
commit 58e7e4023e
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
UNRELEASED: UNRELEASED:
* Prompt for password change on first boot added * SSH disabled by default; can be enabled by creating a file with name "ssh" in boot partition
* Prompt for password change at boot when SSH enabled with default password unchanged
* Adobe Flash Player included * Adobe Flash Player included
* Updates to hardware video acceleration in Chromium browser * Updates to hardware video acceleration in Chromium browser
* Greeter now uses background image from last set in Appearance Settings rather than pi user * Greeter now uses background image from last set in Appearance Settings rather than pi user

View File

@ -23,10 +23,10 @@ case "$1" in
yes | ssh-keygen -q -N '' -t rsa -f /etc/ssh/ssh_host_rsa_key && \ yes | ssh-keygen -q -N '' -t rsa -f /etc/ssh/ssh_host_rsa_key && \
yes | ssh-keygen -q -N '' -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key && \ yes | ssh-keygen -q -N '' -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key && \
yes | ssh-keygen -q -N '' -t ed25519 -f /etc/ssh/ssh_host_ed25519_key && \ yes | ssh-keygen -q -N '' -t ed25519 -f /etc/ssh/ssh_host_ed25519_key && \
systemctl enable ssh && sync && \ sync && \
rm /etc/init.d/regenerate_ssh_host_keys && \ rm /etc/init.d/regenerate_ssh_host_keys && \
update-rc.d regenerate_ssh_host_keys remove && \ update-rc.d regenerate_ssh_host_keys remove && \
printf '\nfinished\n' && systemctl start ssh" > /var/log/regen_ssh_keys.log 2>&1 & printf '\nfinished\n'" > /var/log/regen_ssh_keys.log 2>&1 &
log_end_msg $? log_end_msg $?
;; ;;
*) *)