Skip to content

Commit

Permalink
UX: reduce clutter on login and disable showing lastlog when connecte…
Browse files Browse the repository at this point in the history
…d via SSH
  • Loading branch information
igorpecovnik committed Aug 31, 2024
1 parent 0a18ec6 commit 4f72190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/functions/rootfs/distro-agnostic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ function install_distribution_agnostic() {
# permit root login via SSH for the first boot
sed -i 's/#\?PermitRootLogin .*/PermitRootLogin yes/' "${SDCARD}"/etc/ssh/sshd_config

# reduce clutter - disable showing last log when connected via SSH
sed -i 's/#\?PrintLastLog .*/PrintLastLog no/' "${SDCARD}"/etc/ssh/sshd_config

# enable PubkeyAuthentication
sed -i 's/#\?PubkeyAuthentication .*/PubkeyAuthentication yes/' "${SDCARD}"/etc/ssh/sshd_config

Expand Down

0 comments on commit 4f72190

Please sign in to comment.