Difference between revisions of "Ssh-add"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
<code>[[ssh-add]]</code> adds [[private key]] identities to the [[OpenSSH]] authentication agent (<code>[[ssh-agent]]</code>) | <code>[[ssh-add]]</code> adds [[private key]] identities to the [[OpenSSH]] authentication agent (<code>[[ssh-agent]]</code>) | ||
Line 6: | 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: | ||
+ | Execute <code>[[ssh-agent]]</code> | ||
− | |||
− | |||
− | |||
− | |||
+ | [[ssh-add -l]] | ||
+ | The agent has no identities. | ||
+ | |||
+ | [[ssh-add -L]] | ||
− | + | [[ssh-add -K]] | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[ssh-add -A]], deprecated in fauvour [[--apple-use-keychain]] and [[--apple-load-keychain]]. | |
− | ssh-add -- | + | No identity found in the [[keychain]]. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | * <code>[[Ubuntu: ssh-add --help]]</code> | ||
+ | * <code>[[ssh-add --help (MacOS)]]</code> | ||
== Related terms == | == Related terms == | ||
* <code>[[ssh-agent]]</code> | * <code>[[ssh-agent]]</code> | ||
− | + | * <code>[[ssh-copy-id]]</code> | |
== See also == | == See also == | ||
+ | * {{ssh-add}} | ||
* {{OpenSSH}} | * {{OpenSSH}} | ||
[[Category:OpenSSH]] | [[Category:OpenSSH]] |
Latest revision as of 12:34, 24 August 2024
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, deprecated in fauvour --apple-use-keychain and --apple-load-keychain. No identity found in the keychain.
Related terms[edit]
See also[edit]
ssh-add [ -K | --help ]
- OpenSSH (changelog):
/etc/ssh/sshd_config
|/etc/ssh/ssh_config
|~/.ssh/
|openSSL | sshd logs
|sftp
|scp
|authorized_keys
|ssh-keygen
|ssh-keyscan
|ssh-add
|ssh-agent
|ssh
|Ssh -O stop
|ssh-copy-id
|CheckHostIP
|UseKeychain
, OpenSSF, ~/.ssh/authorized_keys
Advertising: