Editing ~/.ssh/authorized keys
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
* [[Configure OpenSSH to allow Public-key authentication]] | * [[Configure OpenSSH to allow Public-key authentication]] | ||
− | |||
− | |||
− | + | <pre> | |
− | + | AUTHORIZED_KEYS FILE FORMAT | |
− | |||
AuthorizedKeysFile specifies the files containing public keys for public key authentication; if this option is not specified, the default is ~/.ssh/authorized_keys and | AuthorizedKeysFile specifies the files containing public keys for public key authentication; if this option is not specified, the default is ~/.ssh/authorized_keys and | ||
~/.ssh/authorized_keys2. Each line of the file contains one key (empty lines and lines starting with a ‘#’ are ignored as comments). Public keys consist of the following | ~/.ssh/authorized_keys2. Each line of the file contains one key (empty lines and lines starting with a ‘#’ are ignored as comments). Public keys consist of the following | ||
− | space-separated fields: options, keytype, | + | space-separated fields: options, keytype, base64-encoded key, comment. The options field is optional. The supported key types are: |
− | |||
Line 22: | Line 13: | ||
ecdsa-sha2-nistp521 | ecdsa-sha2-nistp521 | ||
− | ssh- | + | ssh-ed25519 |
ssh-dss | ssh-dss | ||
ssh-rsa | ssh-rsa | ||
The comment field is not used for anything (but may be convenient for the user to identify the key). | The comment field is not used for anything (but may be convenient for the user to identify the key). | ||
+ | </pre> | ||
== Example files == | == Example files == | ||
− | + | [[ssh-ed25519]] AAAAC3NzaC1lZDI1NTE5AAAAIEBiBqpWXhPTH9RIo9UR3ED9xUv6O/SqpWRn16UH/gHD TEXT@TEXT | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: