Networking, DNS & TLS
SSH: logging in with key pairs
How a key pair lets you log in without a password, where each half of the key lives, and the three-item checklist behind 'Permission denied (publickey)'.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- curl: send an HTTP request and read the answerBeginner · 5 min
One command that shows DNS, the TCP connection, TLS and the HTTP exchange in order, and how its exit codes point at the layer that failed.
- ss: who is listening on which port?Beginner · 5 min
How to tell in ten seconds whether a service is really listening, on which address, and which process owns the port.
- What happens when you type a URLBeginner · 5 min
The most-asked networking interview question as one story: DNS, routing and NAT, TCP, TLS and HTTP in order, with the failure signature of each stage.
- Subnet planning: carve a /16 into /24s and /26sBeginner · 5 min
How to spend a /16 so that the load balancer, the app tier and a future partner network all fit, and why the plan has to exist before the first subnet does.
- Routing tables, next hop and longest prefix matchBeginner · 5 min
Why a stopgap route for one /24 quietly steals traffic from a /16, and how to ask the kernel which route a packet will take before you send anything.
- TCP states: ESTABLISHED, TIME_WAIT and CLOSE_WAITBeginner · 5 min
Read the State column of ss like a thermometer: TIME-WAIT in the thousands is usually the protocol working, while a few dozen growing CLOSE-WAIT sockets are a bug in…