other:ssh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
other:ssh [2023/03/24 17:42] – [Connecting to servers commonly used by LSCE users] Updated IPSL servers info jypeter | other:ssh [2024/11/29 13:58] (current) – [Installing ssh keys] Improved jypeter | ||
---|---|---|---|
Line 72: | Line 72: | ||
If you want to connect to the [[https:// | If you want to connect to the [[https:// | ||
+ | * [[https:// | ||
* Connecting to '' | * Connecting to '' | ||
* '' | * '' | ||
Line 358: | Line 359: | ||
==== Installing ssh keys ==== | ==== Installing ssh keys ==== | ||
+ | <note tip> | ||
+ | * '' | ||
+ | |||
+ | </ | ||
+ | |||
+ | The **required //ssh key// files have to be present in the '' | ||
+ | |||
+ | |||
+ | 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 **// | ||
+ | * 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 ==== | ||
Line 376: | Line 422: | ||
==== Windows ssh agent ==== | ==== Windows ssh agent ==== | ||
- | On Windows, | + | * On Windows, |
+ | * [[other: | ||
+ | * Some programs that use '' | ||
+ | |||
+ | * It is also possible (but less convenient) to use the Windows built-in '' | ||
+ | * Note that the //agent service// is not activated by default and you will get the following error when you try to use '' | ||
+ | * < | ||
+ | Error connecting to agent: No such file or directory</ | ||
+ | * It is necessary to first **activate the agent Windows // | ||
+ | * < | ||
+ | Status | ||
+ | ------ | ||
+ | Stopped | ||
+ | |||
+ | C: > Get-Service ssh-agent | Set-Service -StartupType Automatic | ||
+ | |||
+ | C: > Start-Service ssh-agent | ||
+ | |||
+ | C: > Get-Service ssh-agent | ||
+ | Status | ||
+ | ------ | ||
+ | Running | ||
+ | |||
+ | C: > ssh-add | ||
+ | Enter passphrase for C: | ||
+ | Identity added: C: | ||
+ | Identity added: C: | ||
+ | |||
+ | C: > ssh-add -l | ||
+ | 1024 SHA256:/ | ||
+ | 256 SHA256: | ||
==== Mac ssh agent ==== | ==== Mac ssh agent ==== |
other/ssh.1679676147.txt.gz · Last modified: 2023/03/24 17:42 by jypeter