Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tech_notes:ssh [2024-03-09 Sat wk10 10:24] – baumkp | tech_notes:ssh [2024-03-09 Sat wk10 10:45] (current) – [ssh-keygen] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
======ssh with key files====== | ======ssh with key files====== | ||
+ | The advantages of using SSH key-based include: | ||
+ | *Improved security | ||
+ | *Easier access to ssh (if password keys are not used) | ||
+ | |||
+ | Clearly use of unique password encrypted keys gives best security. | ||
- | ====ssh-keygen===== | + | <fc # |
- | The '' | + | =====ssh-keygen====== |
- | ++++ssh-keygen| | + | The '' |
- | < | + | |
- | [-m format] [-N new_passphrase] [-O option] | + | //Use '' |
- | [-t dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa] | + | |
- | [-w provider] [-Z cipher] | + | |
- | | + | |
- | [-P old_passphrase] [-Z cipher] | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | [-n principals] [-O option] [-V validity_interval] | + | |
- | [-z serial_number] file ... | + | |
- | | + | |
- | | + | |
- | | + | |
- | file ... | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | -n namespace -s signature_file [-r krl_file] [-O option]</code) | + | |
- | ++++ | + | |
====ssh-keygen default==== | ====ssh-keygen default==== | ||
Line 53: | Line 25: | ||
====Warning==== | ====Warning==== | ||
- | <fc # | + | <fc # |
- | **//</ | + | //</ |
Once you have generated the keys, they are stored in the / | Once you have generated the keys, they are stored in the / | ||
Line 60: | Line 32: | ||
*Public key - 644 | *Public key - 644 | ||
+ | =====sharing keys===== | ||
+ | Some examples: | ||
+ | *'' | ||
+ | *'' | ||
+ | The remote ssh will ask for remote shell password. | ||
+ | //Use '' | ||
+ | =====references===== | ||
[[https:// | [[https:// | ||
<- tech_notes: | <- tech_notes: | ||