NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 30 min
Master SSH key management. Learn how attackers use authorized_keys for persistence and hijack ssh-agent sockets to pivot without passwords.
SSH keys are much stronger than passwords: a modern Ed25519 key (or RSA with at least 3072 bits) cannot be guessed. But anyone who has the private key — or can use a loaded agent — logs in without a password. So keys need care.
ssh-keygen creates a key pair. Since OpenSSH 9.5 the default type is Ed25519:
~/.ssh/id_ed25519 — the secret. Mode 600 (only the owner can read and write).~/.ssh/id_ed25519.pub — safe to share. Mode 644 is fine.To allow key login, put the public key on the server in the user's ~/.ssh/authorized_keys file (one key per line; ssh-copy-id does this for you). When you connect, the server sends a challenge; your client signs it with the private key, and the server checks the signature with the public key. The private key never leaves your machine.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign inWindows Fundamentals
The Windows Fundamentals learning path provides a comprehensive foundation in Microsoft Windows operating systems, speci
ViewSOC Fundamentals
Dive into the daily operations of a modern Security Operations Center. The SOC Fundamentals learning path breaks down ho
ViewThreat Detection and Intelligence
The Threat Detection & Intelligence Learning Path is designed to elevate security professionals from reactive alert resp
ViewIncident Response
Incident Response is the ultimate test of a security team. When the alerts turn into a confirmed breach, theory goes out
ViewPrivilege Escalation
A comprehensive learning path covering the core methodologies of post-exploitation privilege escalation across both majo
ViewWeb Application Security
A comprehensive learning path covering the most critical web application vulnerabilities beyond basic injection. Progres
View