Here are some reminders for securely generating SSH keys.

How to generate a modern ED25519 SSH key

To generate a good default ssh key in the default path ~/.ssh/id_ed25519 :


ssh-keygen -t ed25519 -a 100

To generate a good SSH key with specified output file path ( -f ) and descriptive c...

Continue reading...

SETUP PROCESS:

INITIAL USER:

adduser myuser
passwd myuser
gpasswd -a myuser wheel
su - myuser
mkdir .ssh
chmod 700 .ssh
vi .ssh/authorized_keys
chmod 600 .ssh/authorized_keys

SSH

Made the following modifications to /etc/ssh/sshd_config:

Port 2222
PermitRootLogin no
MaxAuthTries 6
MaxSe...

Continue reading...