User Tools

Site Tools


other:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
other:ssh [2023/04/13 16:00]
jypeter [Windows ssh agent] added lots of details
other:ssh [2023/05/03 08:32]
jypeter [Windows ssh agent] Improved
Line 376: Line 376:
 ==== Windows ssh agent ==== ==== Windows 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+  * On Windows, ​we recommend using [[other:​putty_conf#​using_the_private_key_in_pageant|Pageant/PuTTY]] as an //ssh agent//because: 
 +    * [[other:​putty_conf#​launching_putty_pageant|Pageant/​PuTTY]] also offers ​very easy and convenient way to define profiles to connect to your favorite servers 
 +    * Some programs that use ''​ssh''​ to transfer files will automatically use the keys stored in ''​Pageant'':​ [[other:​win10apps#​winscp|WinSCP]],​ [[other:​emacs_doc|emacs]],​ ...
  
-  * It is also possible (but less convenient) to use the Windows built-in ''​ssh-agent''​ and ''​ssh'' ​command+  * It is also possible (but less convenient) to use the Windows built-in ''​ssh-agent''​ and ''​ssh'' ​commands
-    * 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+    * Note that the //agent service// is not activated by default and you will get the following error when you try to use ''​ssh-add''​ 
 +      * <​code>​C:​ > ssh-add
 Error connecting to agent: No such file or directory</​code>​ 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 +    * It is necessary to first **activate the agent Windows //service//** (in an **//​elevated//​ PowerShell**, i.e with //​Administrator//​ privileges) 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+      * <​code>​C:​ > Get-Service ssh-agent
 Status ​  ​Name ​              ​DisplayName Status ​  ​Name ​              ​DisplayName
 ------ ​  ​---- ​              ​----------- ------ ​  ​---- ​              ​-----------
 Stopped ​ ssh-agent ​         OpenSSH Authentication Agent Stopped ​ ssh-agent ​         OpenSSH Authentication Agent
  
-PS C:\Users\your_login> Get-Service ssh-agent | Set-Service -StartupType Automatic+C: > Get-Service ssh-agent | Set-Service -StartupType Automatic
  
-PS C:\Users\your_login> Start-Service ssh-agent +C: > Start-Service ssh-agent
-PS C:​\Users\your_login>​ Get-Service ssh-agent+
  
 +C: > Get-Service ssh-agent
 Status ​  ​Name ​              ​DisplayName Status ​  ​Name ​              ​DisplayName
 ------ ​  ​---- ​              ​----------- ------ ​  ​---- ​              ​-----------
 Running ​ ssh-agent ​         OpenSSH Authentication Agent Running ​ ssh-agent ​         OpenSSH Authentication Agent
  
-PS C:\Users\your_login> ssh-add +C: > ssh-add 
-Enter passphrase for C:​\Users\your_login/​.ssh/​id_dsa:​+Enter passphrase for C:​\Users\your_login/​.ssh/​id_dsa: ​XXXX_Type_Your_Passphrase_Here_XXXX
 Identity added: 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>​+Identity added: C:​\Users\your_login/​.ssh/​id_ed25519 
 + 
 +C: > ssh-add -l 
 +1024 SHA256:/​vC3Ma6s9Wj[Some_Summary_Info_About_The_Key]c1Q4 (DSA) 
 +256 SHA256:​8BGKU+zBnJXH[Some_Summary_Info_About_The_Key]2Al8 jypeter@obelix5 (ED25519)</​code>​
  
 ==== Mac ssh agent ==== ==== Mac ssh agent ====
other/ssh.txt · Last modified: 2023/05/03 08:32 by jypeter