[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SSH : Authentification par clefs + interdiction d'accès par mot de passe - Trixie brut d'installation



Bonjour,

Je crois que j'ai compris l'origine de ton problème.

Tu as ici le nom des fichiers qui sont "tentés" par ssh :

Le 2025-10-08 22:38, Alain Vaugham a écrit :
debug1: identity file /home/moi/.ssh/id_rsa type 0
debug1: identity file /home/moi/.ssh/id_rsa-cert type -1
debug1: identity file /home/moi/.ssh/id_dsa type -1
debug1: identity file /home/moi/.ssh/id_dsa-cert type -1
debug1: identity file /home/moi/.ssh/id_ecdsa type -1
debug1: identity file /home/moi/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/moi/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/moi/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/moi/.ssh/id_ed25519 type -1
debug1: identity file /home/moi/.ssh/id_ed25519-cert type -1
debug1: identity file /home/moi/.ssh/id_ed25519_sk type -1
debug1: identity file /home/moi/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/moi/.ssh/id_xmss type -1
debug1: identity file /home/moi/.ssh/id_xmss-cert type -1

Or visiblement tu as enregistré ta clé dans un fichier nommé comme ça :

Le 2025-10-08 07:31, Alain Vaugham a écrit :
$ ssh-copy-id -pXXXX -i ~/.ssh/id_rsa_user@machine.pub user@ip_machine

Tu pourrais (au choix) :

- renommer ~/.ssh/id_rsa_user@machine.pub en ~/.ssh/id_rsa (si ce fichier n'existe pas mais il n'a pas l'air vu tes logs) - créer un enregistrement dans ~/.ssh/config pour indiquer où trouver la clé (comme indiqué là : https://linuxize.com/post/using-the-ssh-config-file/#shared-ssh-config-file-example)

Sébastien


Reply to: