Problème open-ssh sur Debian
Bonsoir ,
Je fais tourner Debian sur un Raspberry Pi 3.
Quand je me connecte à partir d'un poste du réseau privé, je tape la commande ssh pi@mon_ip/mdp et
tout fonctionne bien.
Je possède une adresse ip fixe sur mon routeur.
Quand j'essaie de me connecter de la manière ssh pi@mon_ip_internet_fixe, alors apparait le message suivant :
Permission denied, please try again.
Est-ce un problème de configuration de sshd sur le serveur Debian ?
Problème connexion ssh sur machine distante ...
Bonsoir ,
Je résume :
J'ai fait ssh-copy-id -i id_rsa.pub pi@réseau_privé sur la machine distante en réseau local.
Avant, j'avais généré une clef publique sur l'hôte avec keygen.
Quand, je me connecte sur mon réseau privé, tout marche nickel.
La machine distante sur laquelle tourne open-ssh me demande la passphrase de la clé quand je suis connecté.
Bon début, mais :
Si je tente de faire ssh-copy-id -i id_rsa.pub pi@adresse_publique_ipV4_unique sur la machine distante alors j'ai :
INFO: 1 -key(s) remain to be installed -- if you are prompted now it is to install the new keys.
En clair , la clef publique refuse de s'installer .
J'ai par la suite, une demande du mot de passe root de la machine distante.
Voici le sshd_config de mon serveur sshd :
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
PasswordAuthentication no
# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
Je ne sais pas où trouver de la documentation et suis bien sûr preneur pour toute aide.