Linux Survival Basics
Read-only, sensitive outputList SSH Agent Keys
You need the keys currently loaded in the SSH agent.
Command
ssh-add -l
Before you run this
System impact: Read-only. Output may expose users, paths, tokens, keys, IPs, process arguments, or log details.
When not to use it: Do not paste key fingerprints publicly if they identify private infrastructure.
Expected output
A list of loaded public-key fingerprints and comments.
System impact
Read-only, sensitive output. Nothing changes. The command reads current state and prints diagnostic evidence.
Recovery / rollback: no state is changed.
When to use it
Use on the client side when SSH says too many authentication failures.
When not to use it
Do not paste key fingerprints publicly if they identify private infrastructure.
Common misread
Do not paste key fingerprints publicly if they identify private infrastructure.
Example run
Commands shown
These are the commands shown for inspection. Treat them as an example, not proof that your system will behave identically.
ssh-add -lssh-add -l
next steps
Related commands
Test SSH with One Identity File
Force one key when the agent offers too many identities.
ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 user@example.com
Find SSH Too Many Authentication Failures Lines
The auth log proves whether the server refused after too many offered keys.
grep -i 'Too many authentication failures' /var/log/auth.log /var/log/secure 2>/dev/null | tail -20
Read TLS Certificate Subject and Issuer
The certificate can be valid but issued for the wrong name.
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates
List systemd Timers and Last Runs
A timer can be inactive, missed, or waiting for the wrong calendar.
systemctl list-timers --all --no-pager
List Contents of a Backup Tarball
You can inspect an archive without extracting it.
tar -tf archives/site-backup.tar | sort | head
next diagnostic step
Where to go from this command
- Related problem hub Use this command as part of the repair path.
Study mapping
Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.
Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.