Changeset 7450


Ignore:
Timestamp:
Jan 30, 2010, 7:23:58 PM (15 years ago)
Author:
richardvm
Message:

Changed the way enablepassword is disabled in /etc/ssh/sshd_config (the previous way resulted in an empty file)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2.0/nanobsd/nanobsd/cfg/nanobsd.wleiden

    r7427 r7450  
    230230
    231231cust_disable_ssh_password () {
    232   chroot ${NANO_WORLDDIR} sh -c "cd /etc/ssh/ ; cat sshd_config | sed -e 's/\#PasswordAuthentication\ no/PasswordAuthentication\ no/' > sshd_config"
     232  chroot ${NANO_WORLDDIR} sh -c "mv /etc/ssh/sshd_config /tmp"
     233  chroot ${NANO_WORLDDIR} sh -c "cat /tmp/sshd_config | sed -e 's/\#PasswordAuthentication\ no/PasswordAuthentication\ no/' > /etc/ssh/sshd_config"
     234  chroot ${NANO_WORLDDIR} sh -c "rm /tmp/sshd_config"
    233235}
    234236
Note: See TracChangeset for help on using the changeset viewer.