linux:ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:ssh [2026/05/18 14:45] โ [MANAGING PASSPHRASE] v1ctor | linux:ssh [2026/05/18 15:07] (current) โ [PUBLIC KEY AUTHENTICATION] v1ctor | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== PUBLIC KEY AUTHENTICATION ===== | ===== PUBLIC KEY AUTHENTICATION ===== | ||
| + | |||
| + | === SSH AGENT ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | How it works: | ||
| + | - Agent starts as a background process, listening on a unix socket. Its path is exported as $SSH_AUTH_SOCK. | ||
| + | - You run ssh-add <key> once โ passphrase prompt, decrypted key goes into agent memory. | ||
| + | - When ssh connects somewhere, it checks $SSH_AUTH_SOCK, | ||
| + | |||
| + | With agent **forwarding** (ssh -A bastion, or ForwardAgent yes in config), SSH forwards $SSH_AUTH_SOCK from your laptop into the bastion shell. When you then run ssh internal-server from the bastion. | ||
| + | |||
| + | === SSH KEYS ==== | ||
| SSH keeys come in pairs: | SSH keeys come in pairs: | ||
linux/ssh.1779115554.txt.gz ยท Last modified: by v1ctor
