Skip to content

Commit 1510253

Browse files
committed
Fix #8: Vulnerability 2.3: Default SSH credentials
1 parent d3adb03 commit 1510253

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

raspberrypi/recipes/pi3-pi4.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ toast_me() {
1414
chroot $MNT adduser pi sudo
1515
chroot $MNT adduser pi plugdev
1616
echo "pi:raspberry" | chroot $MNT chpasswd
17+
chroot $MNT chage -d0 pi
1718

1819
# Let's make sure we don't ship any SSH host keys. Also work around upstream
1920
# bug leading ssh.service to try and start before SSH host keys have been

raspberrypi/recipes/pi5.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ toast_me() {
1414
chroot $MNT adduser pi sudo
1515
chroot $MNT adduser pi plugdev
1616
echo "pi:raspberry" | chroot $MNT chpasswd
17+
chroot $MNT chage -d0 pi
1718

1819
# Let's make sure we don't ship any SSH host keys. Also work around upstream
1920
# bug leading ssh.service to try and start before SSH host keys have been

0 commit comments

Comments
 (0)