Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:ssh_pub_priv_keys [2014/12/08 20:40] billdozor |
linux_wiki:ssh_pub_priv_keys [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== SSH Pub/Priv Keys ====== | ====== SSH Pub/Priv Keys ====== | ||
- | Description: | + | **General Information** |
- | From the local client: | + | Create public/ |
- | ===== Create public/ | + | **Checklist** |
+ | * Distro(s): Any | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== From the local client ===== | ||
+ | |||
+ | ==== Create public/ | ||
<code bash> | <code bash> | ||
ssh-keygen -t rsa | ssh-keygen -t rsa | ||
Line 17: | Line 24: | ||
* $HOME/ | * $HOME/ | ||
- | ===== Put public key on remote server(s) | + | ==== Put public key on remote server(s) ==== |
<code bash> | <code bash> | ||
ssh-copy-id -i $HOME/ | ssh-copy-id -i $HOME/ | ||
</ | </ | ||
- | If ssh-copy-id is not installed, use scp instead: | + | If ssh-copy-id is not installed, use scp instead |
<code bash> | <code bash> | ||
scp $HOME/ | scp $HOME/ | ||
Line 30: | Line 37: | ||
</ | </ | ||
- | ===== Ensure ssh-agent is running and add private key passphrase | + | ==== Ensure ssh-agent is running and add private key passphrase ==== |
<code bash> | <code bash> | ||
eval $(ssh-agent) | eval $(ssh-agent) | ||
Line 37: | Line 44: | ||
Enter private key passphrase to add private key to the ssh-agent. | Enter private key passphrase to add private key to the ssh-agent. | ||
- | ===== Login to server, no password prompt because of ssh-agent/ | + | ==== Login to server, no password prompt because of ssh-agent/ |
<code bash> | <code bash> | ||
ssh username@server | ssh username@server | ||
</ | </ |