Je ne peux pas me connecter à SSH en tant qu'utilisateur ou changer d'utilisateur

Mon serveur “VouNébergezPa”

Matériel: Pi “Framboisier” 3
Version VouNébergezPa: 3.7.1.1
Accès: “SDS”, Session à distance sécurisée (SSH)
modifié?: non

Voilà, mon problèmes.

connecter à SSH

[folaht@Pjehrsomehj ~]$ ssh folaht@Vxnebehrzjepa
Raspbian GNU/Linux 9
Linux Vxnebehrzjepa 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No mail.
Last login: Fri Apr 10 07:46:10 2020 from 192.168.178.21
Connection to vxnebehrzjepa closed.

changer d’utilisateur

admin@Vxnebehrzjepa:~ $ sudo su - folaht
admin@Vxnebehrzjepa:~ $

Je suppose qu’ils sont liés.

J’ai ce problème sur les deux 'F’pi’s, un viennent d’être installés ainsi et un utilisé les années.

Les utilisateurs créés par YNH n’ont pas de shell par défaut:

su folaht -s /bin/bash
1 Like

Même cela n’a aucun effet.

admin@Vxnebehrzjepa:~ $ su folaht -s /bin/bash
Mot de passe : 
admin@Vxnebehrzjepa:~ $ 

Peux-tu copier ici le contenu de tail /var/log/auth.log juste après avoir retenté de te connecter?

1 Like

Oui, voila!

Apr 10 07:48:02 Vxnebehrzjepa sshd[2084]: Starting session: shell on pts/0 for admin from 192.168.178.21 port 48040 id 0
Apr 10 07:48:23 Vxnebehrzjepa su[2119]: pam_unix(su:auth): authentication failure; logname=admin uid=1007 euid=0 tty=/dev/pts/0 ruser=admin rhost=  user=folaht
Apr 10 07:48:23 Vxnebehrzjepa su[2119]: Successful su for folaht by admin
Apr 10 07:48:23 Vxnebehrzjepa su[2119]: + /dev/pts/0 admin:folaht
Apr 10 07:48:23 Vxnebehrzjepa su[2119]: pam_unix(su:session): session opened for user folaht by admin(uid=1007)
Apr 10 07:48:23 Vxnebehrzjepa su[2119]: pam_systemd(su:session): Cannot create session: Already running in a session
Apr 10 07:48:23 Vxnebehrzjepa su[2119]: pam_unix(su:session): session closed for user folaht

c.f. “yunohost user ssh allow --help” to allow / disallow some user to connect through ssh (though I’m not 100% sure it works entirely)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.