Differences
This shows you the differences between two versions of the page.
linux_wiki:configure_key-based_authentication [2016/09/06 21:45] billdozor [SSH Key Creation and Distribution] |
linux_wiki:configure_key-based_authentication [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Configure Key-based Authentication ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | SSH key based authentication (password-less). | ||
- | |||
- | ---- | ||
- | |||
- | ====== SSH Key Creation and Distribution ====== | ||
- | |||
- | Key based authentication involves a private and public key.\\ | ||
- | The private key stays on the source system, the public key is distributed to all remote systems. | ||
- | |||
- | Generate the private/ | ||
- | <code bash> | ||
- | ssh-keygen | ||
- | </ | ||
- | * RSA is the default key type | ||
- | * Prompted for file to save private key (~/ | ||
- | * Prompted for file to save public key (~/ | ||
- | |||
- | \\ | ||
- | Copy the public key to a remote system | ||
- | <code bash> | ||
- | ssh-copy-id myserver | ||
- | </ | ||
- | * Prompted for password login | ||
- | * Next normal ssh login will be password-less | ||
- | |||
- | ---- | ||