Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Just wanted a quick summary of the differences between them and why there are two? Cheers

share|improve this question
5  
Gotta love those sequential-numbered files where the numbers bear no relation to their function, version or description. – Mark Henderson May 16 '11 at 0:04
@Mark Henderson: yes, what are other examples? – smci Nov 26 '12 at 22:19

3 Answers

up vote 42 down vote accepted

In OpenSSH prior to version 3, the sshd man page used to say:

The $HOME/.ssh/authorized_keys file lists the RSA keys that are permitted for RSA authentication in SSH protocols 1.3 and 1.5 Similarly, the $HOME/.ssh/authorized_keys2 file lists the DSA and RSA keys that are permitted for public key authentication (PubkeyAuthentication) in SSH protocol 2.0.

The release announcement for version 3 states that authorized_keys2 is deprecated and all keys should be put in the authorized_keys file.

share|improve this answer

version differentiation.

don't bother anymore, as now '2' can be ignored.

share|improve this answer

The use of authorized_keys2 for protocol 2 has been deprecated since 2001.

[via]

share|improve this answer
3  
If only someone would tell redhat that... authorized_keys fails, authorized_keys2 works fine. – El Yobo Sep 20 '11 at 2:33
   
redhat stuff was last built in 2001 ;-) – ring0 Aug 24 '12 at 2:13

protected by Khaled Jun 11 '12 at 8:24

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.