This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:linux:ssh_keys [2011/12/13 12:56] gcooper |
computing:linux:ssh_keys [2017/01/28 12:33] (current) gcooper |
||
---|---|---|---|
Line 9: | Line 9: | ||
</ | </ | ||
- | ===== Without | + | ===== Without ssh-copy-id ===== |
If the '' | If the '' | ||
Line 21: | Line 21: | ||
If SSH is on a non-standard port: | If SSH is on a non-standard port: | ||
+ | < | ||
+ | ssh-copy-id -p 2222 user@remote.host.name | ||
+ | </ | ||
+ | or: | ||
< | < | ||
cat ~/ | cat ~/ | ||
</ | </ | ||
- | If no public key yet exists on the machine you will be using to make remote connections: | + | ===== Generate Public Key ===== |
+ | |||
+ | If no public key yet exists on the machine you will be using to make remote connections, you'll need to create one. This is only done once: | ||
< | < | ||
- | ssh-keygen -t dsa | + | ssh-keygen -t rsa |
</ | </ | ||
+ | |||
+ | You probably want to just hit enter at the passphrase prompt. |