Pourquoi SSH refuse-t-il discrètement l’autorisation de clé publique?

0

J'ai un serveur propre, une clé RSA fraîchement générée dans ~ / .ssh / registered_keys.

debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: steve_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password

Peu importe que j'utilise la bonne clé privée ou une clé aléatoire.

Steve Bennett
la source

Réponses:

7

Ah ~/.sshsur le serveur doit être privé.

$ chmod 700 ~/.ssh
Steve Bennett
la source