Difference between revisions of "Ssh-add"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
  ssh-add
 
  ssh-add
 
  (no output)
 
  (no output)
 +
 +
ssh-add id_ed25519_your_key
 +
Enter [[passphrase]] for id_ed25519_your_key:
 +
Identity added: id_ed25519_your_key (USERNAME@HOSTNAME)
  
 
  ssh-add
 
  ssh-add
  Could not open a connection to your authentication agent.
+
  [[Could not open a connection to your authentication agent.]]
 
   
 
   
 
  Solution:
 
  Solution:
 
  Execute <code>[[ssh-agent]]</code>
 
  Execute <code>[[ssh-agent]]</code>
  
ssh-add id_ed25519_your_key
 
Enter passphrase for id_ed25519_your_key:
 
Identity added: id_ed25519_your_key (USERNAME@HOSTNAME)
 
  
  
  ssh-add -l
+
  [[ssh-add -l]]
 
  The agent has no identities.
 
  The agent has no identities.
 
   
 
   
 
  [[ssh-add -L]]
 
  [[ssh-add -L]]
 +
 +
[[ssh-add -K]]
  
 
  [[ssh-add -A]]
 
  [[ssh-add -A]]
 
  No identity found in the [[keychain]].
 
  No identity found in the [[keychain]].
 
 
  
 
* <code>[[Ubuntu: ssh-add --help]]</code>
 
* <code>[[Ubuntu: ssh-add --help]]</code>
 
 
 
 
*  <code>[[ssh-add --help (MacOS)]]</code>
 
*  <code>[[ssh-add --help (MacOS)]]</code>
  
Line 40: Line 38:
  
 
== See also ==
 
== See also ==
 +
* {{ssh-add}}
 
* {{OpenSSH}}
 
* {{OpenSSH}}
  
  
 
[[Category:OpenSSH]]
 
[[Category:OpenSSH]]

Latest revision as of 08:26, 21 September 2023

ssh-add adds private key identities to the OpenSSH authentication agent (ssh-agent)

ssh-add
(no output)
ssh-add id_ed25519_your_key
Enter passphrase for id_ed25519_your_key:
Identity added: id_ed25519_your_key (USERNAME@HOSTNAME)
ssh-add
Could not open a connection to your authentication agent.

Solution:
Execute ssh-agent


ssh-add -l 
The agent has no identities.

ssh-add -L
ssh-add -K
ssh-add -A
No identity found in the keychain.

Related terms[edit]

See also[edit]

Advertising: