network:ssh
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| network:ssh [2022/06/10 19:19] – external edit 127.0.0.1 | network:ssh [2024/11/29 20:27] (current) – passphrase change and no host check rene | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ssh < | ssh < | ||
| </ | </ | ||
| - | + | ||
| + | === SSH no host check === | ||
| + | < | ||
| + | ssh < | ||
| + | </ | ||
| === Create SSH key pair === | === Create SSH key pair === | ||
| < | < | ||
| Line 21: | Line 26: | ||
| -b = bitrate. For rsa and ecdsa. | -b = bitrate. For rsa and ecdsa. | ||
| </ | </ | ||
| + | |||
| + | === Create SSH key pair with Yubikey === | ||
| + | Prerequsites: | ||
| + | * openssh v8.2+ | ||
| + | * yubikey fw v5.2.3+ | ||
| + | * libfido2 lib installed on client | ||
| + | |||
| + | Check openssh version. | ||
| + | < | ||
| + | ssh -V | ||
| + | </ | ||
| + | |||
| + | Check yubikey version. | ||
| + | < | ||
| + | lsusb -v 2>/ | ||
| + | </ | ||
| + | |||
| + | Create the key-pair | ||
| + | < | ||
| + | ssh-keygen -o -a 100 -t ed25519-sk -C "< | ||
| + | </ | ||
| + | |||
| + | === Change key comment === | ||
| + | < | ||
| + | ssh-keygen -c -C "< | ||
| + | </ | ||
| + | |||
| + | === Change passphrase === | ||
| + | < | ||
| + | ssh-keygen -p -f ~/ | ||
| + | </ | ||
| + | |||
| === GIT Specify Key === | === GIT Specify Key === | ||
| edit // | edit // | ||
| Line 29: | Line 66: | ||
| IdentitiesOnly yes | IdentitiesOnly yes | ||
| </ | </ | ||
| + | |||
| === Redhat custom port === | === Redhat custom port === | ||
| Edit /// | Edit /// | ||
network/ssh.1654881591.txt.gz · Last modified: 2022/06/10 19:19 by 127.0.0.1