Differences
This shows you the differences between two versions of the page.
linux_wiki:configure_key-based_authentication_for_ssh [2016/03/05 17:11] billdozor |
linux_wiki:configure_key-based_authentication_for_ssh [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Configure Key-based Authentication For SSH ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | SSH public/ | ||
- | |||
- | ---- | ||
- | |||
- | ===== On Server1 ===== | ||
- | |||
- | Generate public/ | ||
- | <code bash> | ||
- | ssh-keygen | ||
- | </ | ||
- | * By default, uses type " | ||
- | * Private key in / | ||
- | * Public key in / | ||
- | |||
- | \\ | ||
- | Copy from server1 to destination server2 | ||
- | <code bash> | ||
- | ssh-copy-id user@192.168.1.151 | ||
- | </ | ||
- | |||
- | \\ | ||
- | Execute Command on remote system (or simply ssh login normally) | ||
- | <code bash> | ||
- | ssh user@192.168.1.151 "ls -la" | ||
- | </ | ||
- | |||
- | ---- | ||