Difference between revisions of "~/.ssh/authorized keys"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 23: Line 23:
 
  [[ssh-ed25519]] AAAAC3NzaC1lZDI1NTE5AAAAIEBiBqpWXhPTH9RIo9UR3ED9xUv6O/SqpWRn16UH/gHD TEXT@TEXT
 
  [[ssh-ed25519]] AAAAC3NzaC1lZDI1NTE5AAAAIEBiBqpWXhPTH9RIo9UR3ED9xUv6O/SqpWRn16UH/gHD TEXT@TEXT
 
  [[ssh-rsa]] .../...
 
  [[ssh-rsa]] .../...
 +
 +
 +
 +
 +
 +
https://serverfault.com/questions/526399/why-do-my-two-ssh-public-keys-have-the-same-beginning/526404
 +
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ...
 +
      |  "ssh-rsa"  |exponent|  modulus
 +
 +
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFKy...
 +
          |  "ssh-ed25519"  |  32 byte public key
  
 
== See also ==
 
== See also ==

Revision as of 08:51, 7 May 2020


https://linux.die.net/man/5/sshd_config

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
    ~/.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, base64-encoded key, comment.  The options field is optional.  The supported key 
types are:
          [email protected]
          ecdsa-sha2-nistp256
          ecdsa-sha2-nistp384
          ecdsa-sha2-nistp521
          [email protected]
          ssh-ed25519
          ssh-dss
          ssh-rsa
    The comment field is not used for anything (but may be convenient for the user to identify the key).

Example files

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEBiBqpWXhPTH9RIo9UR3ED9xUv6O/SqpWRn16UH/gHD TEXT@TEXT
ssh-rsa .../...



https://serverfault.com/questions/526399/why-do-my-two-ssh-public-keys-have-the-same-beginning/526404 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ...

      |  "ssh-rsa"   |exponent|   modulus

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFKy...

          |   "ssh-ed25519"   |   32 byte public key

See also

Advertising: