How does SSH public key authentication work?
BeginnerConceptNetworking, SSH & Scheduling
Answer
You generate a key pair; the public key goes into ~/.ssh/authorized_keys on the server. During login the server sends a challenge tied to the session; your client signs it with the private key, and the server verifies the signature with the stored public key. The private key never leaves your machine.
ssh-keygen -t ed25519 -C "aditya@laptop"
ssh-copy-id user@server
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerWhat does `ss` show, and which flags do you use?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat happens, step by step, when you run `curl https://example.com`?AdvancedWhich curl flags are most useful for debugging?BeginnerHow do you use `dig` for DNS troubleshooting?Beginner