other:ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| other:ssh [2024/11/27 18:01] – [Installing ssh keys] jypeter | other:ssh [2024/11/29 13:58] (current) – [Installing ssh keys] Improved jypeter | ||
|---|---|---|---|
| Line 359: | Line 359: | ||
| ==== Installing ssh keys ==== | ==== Installing ssh keys ==== | ||
| - | The required //ssh keys// | + | <note tip>**Special case**: |
| - | * on the **// | + | |
| - | * the //private// key: e.g. '' | + | |
| + | * '' | ||
| - | * and the **//target// computer** (a remote Linux server) | + | </note> |
| - | * the //public// key: '' | + | |
| - | * a copy of the //public// key in the '' | + | |
| - | We assume that you have a copy of the private | + | The **required //ssh key// files have to be present in the '' |
| + | |||
| + | |||
| + | We assume | ||
| + | |||
| + | |||
| + | * on the **// | ||
| + | * you need **the //private// key**: e.g. '' | ||
| + | * remember that **the private key has to be readable only by the file owner (you!)** on a linux (or Mac) computer\\ < | ||
| + | |||
| + | $ ls -l ~/ | ||
| + | -rw------- [...] / | ||
| + | |||
| + | |||
| + | * and the **// | ||
| + | * you need **the //public// key**: e.g. '' | ||
| + | * you need a copy of the //public// key in the '' | ||
| + | * **if the '' | ||
| + | |||
| + | $ ls -l authorized_keys | ||
| + | ls: cannot access authorized_keys: | ||
| + | |||
| + | $ cp -p id_ed25519.pub authorized_keys</ | ||
| + | * **if there is already an '' | ||
| + | |||
| + | $ cat authorized_keys | ||
| + | ssh-dss AAAAB3NzaC1kc3MAAACBAM9w0bY604COfD5yLwlBLaSDSbi2eKfhPJBl/ | ||
| + | [...] | ||
| + | OUZ8jrQrhDbq2P7GNTTaEEdy+JvtDvZSZLG4+DwhWSkxqPZ35yD8wfOi5WInpG3Cms some_login | ||
| + | |||
| + | $ mv authorized_keys authorized_keys.save | ||
| + | |||
| + | $ cat authorized_keys.save id_ed25519.pub > authorized_keys | ||
| + | |||
| + | $ cat authorized_keys | ||
| + | ssh-dss AAAAB3NzaC1kc3MAAACBAM9w0bY604COfD5yLwlBLaSDSbi2eKfhPJBl/ | ||
| + | [...] | ||
| + | OUZ8jrQrhDbq2P7GNTTaEEdy+JvtDvZSZLG4+DwhWSkxqPZ35yD8wfOi5WInpG3Cms some_login | ||
| + | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICD35IUxzgjlslHsrOZQ2ARZsXN1RuDcJ+ncyBKLwHr another_login | ||
| + | </ | ||
| ==== Using the keys ==== | ==== Using the keys ==== | ||
other/ssh.1732726865.txt.gz · Last modified: by jypeter
