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 14:52] – [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// **have to be**: | + | <note tip> |
| - | * in the [[other: | + | |
| - | * and the //target// computer (a remote Linux server) | + | * '' |
| + | |||
| + | </ | ||
| + | |||
| + | The **required //ssh key// files have to be present | ||
| + | |||
| + | |||
| + | We assume below that you have copied the required key files in the '' | ||
| + | |||
| + | |||
| + | * 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 **//target// computer**\\ (a remote Linux server)\\ \\ | ||
| + | * 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.1732715521.txt.gz · Last modified: by jypeter
