$ ssh-keygen -t ed25519 -C "[email protected]"
ssh-keygen -t ed25519 -C "[email protected]"
ssh-keygen -t ed25519 -C "[email protected]"
ssh-copy-id -i ~/.ssh/id_ed25519.pub deployer@your-server-ip
ssh-copy-id -i ~/.ssh/id_ed25519.pub deployer@your-server-ip
ssh-copy-id -i ~/.ssh/id_ed25519.pub deployer@your-server-ip
-weight: 600;">sudo nano /etc/ssh/sshd_config.d/99-hardening.conf
-weight: 600;">sudo nano /etc/ssh/sshd_config.d/99-hardening.conf
-weight: 600;">sudo nano /etc/ssh/sshd_config.d/99-hardening.conf
PermitRootLogin no
PasswordAuthentication no
PermitRootLogin no
PasswordAuthentication no
PermitRootLogin no
PasswordAuthentication no
PubkeyAcceptedAlgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com
PubkeyAcceptedAlgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com
PubkeyAcceptedAlgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com
KbdInteractiveAuthentication no
GSSAPIAuthentication no
X11Forwarding no
KbdInteractiveAuthentication no
GSSAPIAuthentication no
X11Forwarding no
KbdInteractiveAuthentication no
GSSAPIAuthentication no
X11Forwarding no
-weight: 600;">sudo -weight: 500;">systemctl reload ssh
-weight: 600;">sudo -weight: 500;">systemctl reload ssh
-weight: 600;">sudo -weight: 500;">systemctl reload ssh
-weight: 600;">sudo sshd -T | grep -E "permitrootlogin|pubkeyaccepted|gssapi|x11|kbdinteractive"
-weight: 600;">sudo sshd -T | grep -E "permitrootlogin|pubkeyaccepted|gssapi|x11|kbdinteractive"
-weight: 600;">sudo sshd -T | grep -E "permitrootlogin|pubkeyaccepted|gssapi|x11|kbdinteractive"
permitrootlogin no
pubkeyacceptedalgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com
gssapiauthentication no
x11forwarding no
kbdinteractiveauthentication no
permitrootlogin no
pubkeyacceptedalgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com
gssapiauthentication no
x11forwarding no
kbdinteractiveauthentication no
permitrootlogin no
pubkeyacceptedalgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com
gssapiauthentication no
x11forwarding no
kbdinteractiveauthentication no