以 PDF 格式下載這本書 (6904 KB)
ssh-add(1)Name | Synopsis | Description | Options | Environment Variables | Exit Status | Files | Attributes | See Also Name
Synopsisssh-add [-lLdDxX] [-t life] [ file ]... DescriptionThe ssh-add utility adds RSA or DSA identities to the authentication agent, ssh-agent(1). When run without arguments, it attempts to add all of the files $HOME/.ssh/identity (RSA v1), $HOME/.ssh/id_rsa (RSA v2), and $HOME/.ssh/id_dsa (DSA v2) that exist. If more than one of the private keys exists, an attempt to decrypt each with the same passphrase is made before reprompting for a different passphrase. The passphrase is read from the user's tty or by running the program defined in SSH_ASKPASS (see below). The authentication agent must be running. Options
The following options are supported: Environment Variables
Exit StatusFiles
These files should not be readable by anyone but the user. Notice that ssh-add ignores a file if it is accessible by others. It is possible to specify a passphrase when generating the key; that passphrase is used to encrypt the private part of this file. If these files are stored on a network file system it is assumed that either the protection provided in the file themselves or the transport layer of the network file system provides sufficient protection for the site policy. If this is not the case, then it is recommended the key files are stored on removable media or locally on the relevant hosts. Recommended names for the DSA and RSA key files: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.11 Last Revised 20 May 2009Name | Synopsis | Description | Options | Environment Variables | Exit Status | Files | Attributes | See Also |
|||||||