Changeset 7450
- Timestamp:
- Jan 30, 2010, 7:23:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2.0/nanobsd/nanobsd/cfg/nanobsd.wleiden
r7427 r7450 230 230 231 231 cust_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" 233 235 } 234 236
Note:
See TracChangeset
for help on using the changeset viewer.