secsh-add adds private key identities to the authentication agent, secsh-agent. When run without arguments, it adds the files $USERPROFILE/.ssh/id_rsa, $USERPROFILE/.ssh/id_dsa, $USERPROFILE/.ssh/id_ecdsa, and $USERPROFILE/.ssh/id_ed25519. After loading a private key, secsh-add will try to load corresponding certificate information from the filename obtained by appending -cert.pub to the name of the private key file. Alternative file names can be given on the command line.
If any file requires a passphrase, secsh-add asks for the passphrase from the user. The passphrase is read from the user's tty. secsh-add retries the last passphrase if multiple identity files are given.
The authentication agent must be running and must be an ancestor of the current process for secsh-add to work.
You can also call secsh-add as ssh-add.
Indicates that added identities should be subject to confirmation before being used for authentication. Confirmation is performed by secsh-askpass. Successful confirmation is signaled by a zero exit status from secsh-askpass, rather than text entered into the requester.
Instead of adding identities, removes identities from the agent. When secsh-add is run without arguments, the keys for the default identities and their corresponding certificates will be removed. Otherwise, the argument list is interpreted as a list of paths to public key files to specify keys and certificates to be removed from the agent. When no public key is found at a given path, secsh_add appends .pub and retries.
Deletes all identities from the agent.
Specifies the hash algorithm used when displaying key fingerprints. Valid options are: md5 and sha256. The default is sha256.
Removes key in smartcard reader.
When loading keys into or deleting keys from the agent, process plain private keys only and skip certificates.
Lists public key parameters of all identities currently represented by the agent.
Lists fingerprints of all identities currently represented by the agent.
Be quiet after a successful operation.
Adds key in smartcard reader.
Sets a maximum lifetime when adding identities to an agent. The lifetime may be specified in seconds or in a time format specified in secshd.
Unlocks the agent.
Locks the agent with a password.
Contains the DSA authentication identity of the user.
Contains the ECDSA authentication identity of the user.
Contains the ED25519 authentication identity of the user.
Contains the RSA authentication identity of the user.
If secsh-add needs a passphrase, it will read the passphrase from the current terminal if it was run from a terminal. If secsh-add does not have a terminal associated with it but DISPLAY and SSH_ASKPASS are set, it will execute the program specified by SSH_ASKPASS (by default secsh-askpass and open an X11 window to read the passphrase. This is particularly useful when calling secsh-add from a .Xsession or related script. (Note that on some machines it may be necessary to redirect the input from /dev/null to make this work.)
OpenSSH is a derivative of the original and free ssh 1.2.12 release by Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo de Raadt and Dug Song removed many bugs, re-added newer features and created OpenSSH. Markus Friedl contributed the support for SSH protocol versions 1.5 and 2.0.
All UNIX systems. Windows Server 2012. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019.
The secsh-add utility, by default, loads keys from the $USERPROFILE directory on 2012/8.1/2012R2/10/2016/2019 platforms instead of ~/. This was done because the ~/ directory might not be available for the case of a domain machine that cannot contact a domain controller. Note that the secure shell service continues to use the ~/.ssh directory to store configuration files.
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit Connectivity Solutions Guide
PTC MKS Toolkit 10.3 Documentation Build 39.