There is a issue confusing me for couple of days.
I have 3 Servers. A, B and C.
I want access B and C from A via ssh. I have set public key/ authorized_keys ... on A,B,C.
Scenario #1: Access B(.133) from A via ssh -- Success! Scenario #2: Access C(.148) from A via ssh -- Failed, it ask inputing password!
Compare their debug info:
1 success case; It is OpenSSH 5.1, it prefer ssh-rsa key:
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa- firstname.lastname@example.org,email@example.com,ssh-rsa.
2 fail case; It is OpenSSH6.2, it does not prefer ssh-rsa key:
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256 firstname.lastname@example.org,email@example.com,ecdsa- firstname.lastname@example.org,ecdsa-sha2-nistp256,ecdsa- sha2-nistp384,ecdsa-sha2-nistp521
My key is genrated by command ' ssh-keygen -t rsa', so ,I think, it is rsa key. Not sure if it is the key reason.
How can I configure the 'prefer hostkeyalgs' in OpenSSH(sshd) ?
Or maybe the issue is caused by other things?
===debug for Scenario #1 and #2 :=== See it at: diffchecker.com/tj5v3iog
(This area don't allow to post too much debug info :( )