Oh la galère ! ^^
J'ai mis trois plombes à trouver d'où venait mon problème de connexion SSH. ^^ La bonne nouvelle c'est que maintenant je pense pas mal me débrouiller pour débugger n'importe quel problème de serveur SSH. 😛
C'était tout bête.
Dans mon fichier de configuration du serveur SSH :
/etc/ssh/sshd_config
J'avais fait ça :
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
Match User <username>
ChrootDirectory %h
# 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
Au lieu de ça :
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
# 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
Match User <username>
ChrootDirectory %h
Et ça change tout. ^^ Le démon SSH n'aime pas ça et ne démarre pas dans le premier cas.
Et oui, dans le tuto il y a écrit :
Magicalex wrote:Et coller vers la fin :
Match user <username>,<username2>,<username3> # etc... note : pas d'espace entre les virgules
ChrootDirectory %h
Le "vers" m'a enduit avec de l'erreur. 😛
Un :
Magicalex wrote:Et coller à la fin du fichier, au-dessous de "UsePAM yes" :
Match user <username>,<username2>,<username3> # etc... note : pas d'espace entre les virgules
ChrootDirectory %h
aurait évité que je me bourde tout seul.
C'est galère de voir le port SSH du serveur fermé sans savoir pourquoi. ^^
Plus qu'à débugger mon problème de connexion à ruTorrent maintenant, même si je suis quasi certain que ça vient des caractères accentués dans mon mot de passe.