Pour accéder à mon poste fixe à partir du portable et vice-versa, j'ai installé un serveur openssh sur ces deux machines sous Archlinux.
J'ai aussi fait la même chose sur un RaspberryPi V2 sous Raspbian.
Les trois postes ont un accès par clé RSA et cela fonctionne bien, dans toutes les directions, si je me connecte en ssh par le terminal.
Là où le bât blesse, c'est quand je veux me connecter en sftp avec Nautilus ou Thunar.
Les postes Archlinux me permettent de me connecter sans problème au RaspberryPi. Par contre je ne peux me connecter à aucun des deux Archlinux en sftp.
Pour tester, je reste sur le PC fixe et rentre juste "sftp://localhost" dans la barre de navigation de Nautilus (Fichiers !). Il me demande bien de déverrouiller la clé RSA, considère que la phrase de passe est bonne, puis affiche un message d'erreur "Oups ... Message d'erreur non géré. La connexion a échouée".
Thunar fait de même et affiche "Impossible d'ouvrir système de fichiers. La connexion a échouée."
Je précise que fuse et sshfs sont bien installés et que le module fuse est bien chargé au démarrage. Je remercie tous ceux qui peuvent me mettre sur la voie d'une solution.
Code : Tout sélectionner
cat /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
# Don't read the user's ~/.rhosts and ~/.shosts files
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