My personal notes on securing a Raspberry Pi.
sudo useradd -m -s /bin/bash NAME
sudo passwd NAME
sudo usermod -aG sudo NAME
sudo pkill -u pi
sudo deluser pi
su - NAME
id NAME
sudo nano /etc/ssh/sshd_config
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
PermitRootLogin no
PermitRootLogin prohibit-password
/etc/init.d/ssh reload
sudo nano /boot/config.txt
dtoverlay=disable-wifi
dtoverlay=disable-bt
ssh-copy-id <USERNAME>@<IP-ADDRESS>
ssh-keygen -R 192.168.1.90