This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
other:ssh [2023/03/24 16:42] jypeter [Connecting to servers commonly used by LSCE users] Updated IPSL servers info |
other:ssh [2023/04/13 16:00] jypeter [Windows ssh agent] added lots of details |
||
---|---|---|---|
Line 376: | Line 376: | ||
==== Windows ssh agent ==== | ==== Windows ssh agent ==== | ||
- | On Windows, you should use [[other:putty_conf|Pageant]] as an ssh agent | + | * On Windows, you should use [[other:putty_conf|Pageant]] as an ssh agent, and a convenient way to define/store profiles to connect to your favorite servers |
+ | |||
+ | * It is also possible (but less convenient) to use the Windows built-in ''ssh-agent'' and ''ssh'' command! | ||
+ | * Note that the //agent service// is not activated by default and you will get the following error if you try to use it\\ <code>PS C:\Users\your_login> ssh-add | ||
+ | Error connecting to agent: No such file or directory</code> | ||
+ | * It is necessary to first activate the agent service (in an //elevated// PowerShell) as explained in the [[https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement#user-key-generation|User key generation]] section | ||
+ | * <code>PS C:\Users\your_login> Get-Service ssh-agent | ||
+ | Status Name DisplayName | ||
+ | ------ ---- ----------- | ||
+ | Stopped ssh-agent OpenSSH Authentication Agent | ||
+ | |||
+ | PS C:\Users\your_login> Get-Service ssh-agent | Set-Service -StartupType Automatic | ||
+ | |||
+ | PS C:\Users\your_login> Start-Service ssh-agent | ||
+ | PS C:\Users\your_login> Get-Service ssh-agent | ||
+ | |||
+ | Status Name DisplayName | ||
+ | ------ ---- ----------- | ||
+ | Running ssh-agent OpenSSH Authentication Agent | ||
+ | |||
+ | PS C:\Users\your_login> ssh-add | ||
+ | Enter passphrase for C:\Users\your_login/.ssh/id_dsa: | ||
+ | Identity added: C:\Users\your_login/.ssh/id_dsa | ||
+ | Identity added: C:\Users\your_login/.ssh/id_ed25519</code> | ||
==== Mac ssh agent ==== | ==== Mac ssh agent ==== |