On this page you find all important commands for the CLI tool ssh-add. If the
command you are looking for is missing please ask our AI.
ssh-add
ssh-add adds RSA or DSA identities to the authentication agent, ssh-agent(1). When run without arguments, it adds the files ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. Alternative file names can be given on the command line. If any file requires a passphrase, ssh-add asks for the passphrase from the user. The passphrase is read from the user's tty. ssh-add retries the last passphrase if multiple identity files are given.
List of commands for ssh-add:
-
ssh:tldr:21ba0 ssh: Add a key to the ssh-agent and the keychain.$ ssh-add -K ${path-to-private_key}try on your machineexplain this command
-
ssh:tldr:3f7bb ssh: Add the default ssh keys in `~/.ssh` to the ssh-agent.$ ssh-addtry on your machineexplain this command
-
ssh:tldr:4131e ssh: Add a specific key to the ssh-agent.$ ssh-add ${path-to-private_key}try on your machineexplain this command
-
ssh:tldr:4538f ssh: Delete a key from the ssh-agent.$ ssh-add -d ${path-to-private_key}try on your machineexplain this command
-
ssh:tldr:96757 ssh: Delete all currently loaded keys from the ssh-agent.$ ssh-add -Dtry on your machineexplain this command
-
ssh:tldr:ee977 ssh: List fingerprints of currently loaded keys.$ ssh-add -ltry on your machineexplain this command