Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 17/08/2016, à 00:27

manon123

[Résolu] Connexion ssh sur seedbox

Bonjour,

Voici 4 heures que j'essaie de résoudre mon problème, mais là j'ai besoin d'aide.

J'ai suivi le très bon tutoriel de la documentation, mais rien n'y fait.

Au début, je voulais me connecter en ssh sur ma seedbox hébergée chez Online.

Je lance la commande :

ssh manon123@ipduserveur

Le retour me demandait mon mot de passe, que j'ai tapé et erreur, retaper mot de passe comme cela trois fois et pas de connexion.

Je crée un ticket chez Online où on me dit de changer le MDP en mode sécurisé, ce que je fait (la seedbox est hébergée sous Ubuntu 14.04)

Je réessaie de me reconnecter en ssh et toujours pareil.

Puis, j'ai ceci comme décrit dans la documentation :

obelix1502@obelix1502-All-Series ~ $ sudo ssh manon123@62.210.85.211
[sudo] Mot de passe de obelix1502 : 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:h+WmgaCBLeyhe9y/+QhqC423XRz1ulsVrqMyPxBtX8w.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:1
  remove with:
  ssh-keygen -f "/root/.ssh/known_hosts" -R 62.210.85.211

Je fais donc un

ssh-keygen -f "/root/.ssh/known_hosts" -R 62.210.85.211

et j'ai bien la réponse :

obelix1502@obelix1502-All-Series ~ $ ssh manon123@62.210.85.211
The authenticity of host '62.210.85.211 (62.210.85.211)' can't be established.
ECDSA key fingerprint is SHA256:h+WmgaCBLeyhe9y/+QhqC423XRz1ulsVrqMyPxBtX8w.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '62.210.85.211' (ECDSA) to the list of known hosts.
manon123@62.210.85.211's password: 
Last login: Tue Aug 16 20:02:50 2016 from host-109-89-227-61.dynamic.voo.be
/bin/bash: No such file or directory
Connection to 62.210.85.211 closed

Alors là, je n'y comprends plus rien.

J'ai généré une clé publique et je possède la clé privée.

Que puis-je faire ?

Merci de vos réponses.

Dernière modification par manon123 (Le 18/08/2016, à 00:41)


Distro: Manjaro 20.1-2

Hors ligne

#2 Le 17/08/2016, à 12:13

pires57

Re : [Résolu] Connexion ssh sur seedbox

Bonjour,

Pourrais tu te connecter avec l'option recovery et nous fournir ta config SSH (pour commencer).
As tu mis en place une sécurité spécifique? fail2ban? portsentry?
Comment as-tu configuré SSH? Authentification normal (mot de passe)? Authentification avec clé?
Renvois moi également le contenu de ce fichier :

/var/lib/sss/pubconf/known_hosts

Dernière modification par pires57 (Le 17/08/2016, à 12:15)


Utilisateur d'Archlinux, Ubuntu et Kali Linux
Administrateur système et réseau spécialisé Linux.
LinkedIn

Hors ligne

#3 Le 17/08/2016, à 13:46

manon123

Re : [Résolu] Connexion ssh sur seedbox

Je sais me connecter en mode recovery, mais je ne sais pas comment te donner la config SSH (je connais pas les commandes et cela fait 2 jours que je suis dessus).
J'ai une clé ssh et une clé seedbox sur le serveur distant.
La configuration : quand je fais la commande habituelle

sudo ssh root@ipserveur

Il me demande un mot de passe qui n'est jamais reconnu.
Normalement il doit y avoir une authentification avec clés étant donné que j'ai une clé publique et privée.

Le contenu du fichier donné plus haut, c'est impossible, il n'existe pas.

Par contre dans /home/user/.ssh/known_hosts, j'ai ceci :

|1|crQgcloKmMkandubRF0fGJQL7y0=|ZLeA1sAdCpCY98+c7t9NHVl42zY= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLuyU3VNYkUqO9749LYm+t4ZntMmBvl6Q8lJqslOH0jitD6HeS3mdeoU2sMXqZPD8UuGzJLWKlydFht/5o56kbg=

Donc si tu voulais me donner les commandes à exécuter pour te fournir la config ssh, je fais cela tout à l'heure.

Merci.


Distro: Manjaro 20.1-2

Hors ligne

#4 Le 17/08/2016, à 14:07

pires57

Re : [Résolu] Connexion ssh sur seedbox

Salut,

Le contenu du fichier se trouve dans

/etc/ssh/sshd_config

tu peut le visualiser avec la commande

cat /etc/ssh/sshd_config

Y a t'il une erreur dans les fichiers de log après la tentative de connection?

cat /var/log/auth.log
cat /var/log/syslog

Utilisateur d'Archlinux, Ubuntu et Kali Linux
Administrateur système et réseau spécialisé Linux.
LinkedIn

Hors ligne

#5 Le 17/08/2016, à 16:34

manon123

Re : [Résolu] Connexion ssh sur seedbox

Bonjour,

Je ne t'ai mis que les erreurs de ce jour car alors, tu vas avoir de la lecture :

Aug 17 10:48:58 obelix1502-All-Series sudo: obelix1502 : TTY=unknown ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/checkAPT.py
Aug 17 10:48:58 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 17 10:49:03 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 11:17:01 obelix1502-All-Series CRON[16627]: pam_unix(cron:session): session opened for user root by (uid=0)
Aug 17 11:17:01 obelix1502-All-Series CRON[16627]: pam_unix(cron:session): session closed for user root
Aug 17 11:20:16 obelix1502-All-Series sudo: obelix1502 : TTY=pts/1 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 11:20:16 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 11:30:45 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 11:31:16 obelix1502-All-Series sudo: pam_unix(sudo:auth): authentication failure; logname=obelix1502 uid=1000 euid=0 tty=/dev/pts/1 ruser=obelix1502 rhost=  user=obelix1502
Aug 17 11:32:02 obelix1502-All-Series sudo: obelix1502 : 3 incorrect password attempts ; TTY=pts/1 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 11:34:05 obelix1502-All-Series sudo: obelix1502 : TTY=pts/1 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 11:34:05 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 11:35:23 obelix1502-All-Series sudo: obelix1502 : TTY=pts/4 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 11:35:23 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 11:36:12 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 11:36:50 obelix1502-All-Series systemd-logind[2966]: System is rebooting.
Aug 17 11:36:50 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 11:36:50 obelix1502-All-Series systemd: pam_unix(systemd-user:session): session closed for user obelix1502
Aug 17 11:36:50 obelix1502-All-Series sshd[3332]: Received signal 15; terminating.
Aug 17 11:56:45 obelix1502-All-Series systemd-logind[3063]: New seat seat0.
Aug 17 11:56:46 obelix1502-All-Series sshd[3467]: Server listening on 0.0.0.0 port 22.
Aug 17 11:56:46 obelix1502-All-Series sshd[3467]: Server listening on :: port 22.
Aug 17 11:56:50 obelix1502-All-Series sshd[3467]: Received SIGHUP; restarting.
Aug 17 11:56:50 obelix1502-All-Series sshd[3467]: Server listening on 0.0.0.0 port 22.
Aug 17 11:56:50 obelix1502-All-Series sshd[3467]: Server listening on :: port 22.
Aug 17 11:56:50 obelix1502-All-Series sshd[3467]: Received SIGHUP; restarting.
Aug 17 11:56:50 obelix1502-All-Series sshd[3467]: Server listening on 0.0.0.0 port 22.
Aug 17 11:56:50 obelix1502-All-Series sshd[3467]: Server listening on :: port 22.
Aug 17 11:56:57 obelix1502-All-Series perl: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root
Aug 17 11:56:59 obelix1502-All-Series mdm[4061]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
Aug 17 11:56:59 obelix1502-All-Series mdm[4061]: PAM adding faulty module: pam_kwallet.so
Aug 17 11:56:59 obelix1502-All-Series mdm[4061]: pam_succeed_if(mdm:auth): requirement "user ingroup nopasswdlogin" not met by user "obelix1502"
Aug 17 11:56:59 obelix1502-All-Series webmin[4027]: Webmin starting
Aug 17 11:57:07 obelix1502-All-Series mdm[4061]: pam_unix(mdm:session): session opened for user obelix1502 by (uid=0)
Aug 17 11:57:07 obelix1502-All-Series systemd-logind[3063]: New session c1 of user obelix1502.
Aug 17 11:57:07 obelix1502-All-Series systemd: pam_unix(systemd-user:session): session opened for user obelix1502 by (uid=0)
Aug 17 11:57:07 obelix1502-All-Series mdm[4061]: pam_ck_connector(mdm:session): nox11 mode, ignoring PAM_TTY :0
Aug 17 11:57:09 obelix1502-All-Series dbus[3113]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.38" (uid=1000 pid=4824 comm="xfce4-power-manager --restart --sm-client-id 25b7d") interface="org.freedesktop.ConsoleKit.Manager" member="CanSuspend" error name="(unset)" requested_reply="0" destination=":1.28" (uid=0 pid=4464 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Aug 17 11:57:09 obelix1502-All-Series dbus[3113]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.38" (uid=1000 pid=4824 comm="xfce4-power-manager --restart --sm-client-id 25b7d") interface="org.freedesktop.ConsoleKit.Manager" member="CanHibernate" error name="(unset)" requested_reply="0" destination=":1.28" (uid=0 pid=4464 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Aug 17 11:57:17 obelix1502-All-Series polkitd(authority=local): Registered Authentication Agent for unix-session:c1 (system bus name :1.47 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale fr_BE.UTF-8)
Aug 17 11:57:37 obelix1502-All-Series dbus[3113]: [system] Failed to activate service 'org.bluez': timed out
Aug 17 11:58:03 obelix1502-All-Series dbus[3113]: [system] Failed to activate service 'org.bluez': timed out
Aug 17 11:58:50 obelix1502-All-Series gnome-keyring-daemon[4460]: couldn't allocate secure memory to keep passwords and or keys from being written to the disk
Aug 17 11:59:35 obelix1502-All-Series sudo: obelix1502 : TTY=pts/3 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 11:59:35 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 12:07:17 obelix1502-All-Series sudo: obelix1502 : TTY=unknown ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/checkAPT.py
Aug 17 12:07:17 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 17 12:07:24 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 12:17:01 obelix1502-All-Series CRON[7908]: pam_unix(cron:session): session opened for user root by (uid=0)
Aug 17 12:17:01 obelix1502-All-Series CRON[7908]: pam_unix(cron:session): session closed for user root
Aug 17 12:39:23 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 12:40:43 obelix1502-All-Series sudo: pam_unix(sudo:auth): authentication failure; logname=obelix1502 uid=1000 euid=0 tty=/dev/pts/3 ruser=obelix1502 rhost=  user=obelix1502
Aug 17 12:40:50 obelix1502-All-Series sudo: obelix1502 : TTY=pts/3 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh manon123@62.210.85.211
Aug 17 12:40:50 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 12:40:58 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 12:41:34 obelix1502-All-Series sudo: obelix1502 : TTY=pts/3 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh-keygen -f /root/.ssh/known_hosts -R 62.210.85.211
Aug 17 12:41:34 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 12:41:34 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 12:41:47 obelix1502-All-Series sudo: obelix1502 : TTY=pts/3 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh manon123@62.210.85.211
Aug 17 12:41:47 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 12:42:04 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 13:04:51 obelix1502-All-Series sudo: obelix1502 : TTY=pts/4 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 13:04:51 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 13:04:51 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 13:05:22 obelix1502-All-Series sudo: obelix1502 : TTY=pts/4 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 13:05:22 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 13:05:22 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 13:06:17 obelix1502-All-Series sudo: obelix1502 : TTY=pts/4 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh-keygen -f /root/.ssh/known_hosts -R 62.210.85.211
Aug 17 13:06:17 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 13:06:17 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 13:06:25 obelix1502-All-Series sudo: obelix1502 : TTY=pts/4 ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/bin/ssh obelix@62.210.85.211
Aug 17 13:06:25 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by obelix1502(uid=0)
Aug 17 13:10:32 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 13:17:01 obelix1502-All-Series CRON[11940]: pam_unix(cron:session): session opened for user root by (uid=0)
Aug 17 13:17:01 obelix1502-All-Series CRON[11940]: pam_unix(cron:session): session closed for user root
Aug 17 14:07:17 obelix1502-All-Series sudo: obelix1502 : TTY=unknown ; PWD=/home/obelix1502 ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/checkAPT.py
Aug 17 14:07:17 obelix1502-All-Series sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 17 14:07:24 obelix1502-All-Series sudo: pam_unix(sudo:session): session closed for user root
Aug 17 14:17:01 obelix1502-All-Series CRON[15438]: pam_unix(cron:session): session opened for user root by (uid=0)
Aug 17 14:17:01 obelix1502-All-Series CRON[15438]: pam_unix(cron:session): session closed for user root
Aug 17 15:17:01 obelix1502-All-Series CRON[18100]: pam_unix(cron:session): session opened for user root by (uid=0)
Aug 17 15:17:01 obelix1502-All-Series CRON[18100]: pam_unix(cron:session): session closed for user root

Voilà : toujours la même chose qui se répète.


Distro: Manjaro 20.1-2

Hors ligne

#6 Le 17/08/2016, à 19:20

droopy191

Re : [Résolu] Connexion ssh sur seedbox

Salut,

Je ne crois pas que ce soit un problème de login, vous avez bien la banière de connexion ( après les corrections faites ).

obelix1502@obelix1502-All-Series ~ $ ssh manon123@62.210.85.211
[SNIP]
Last login: Tue Aug 16 20:02:50 2016 from host-109-89-227-61.dynamic.voo.be

Le problème est différent, pour une raison que j'ignore le serveur ne trouve pas le shell

/bin/bash: No such file or directory

Je n'ai pas d'ubuntu sous la main pour vérifier mais ce n'est pas forcement bash le shell par défaut/installé.
Sur debian par ex, c'est dash, avec un lien depuis /bin/sh
Il faudrait voir le fichier de config du serveur ssh. Ca ressemble à une tentative de chroot ou autre limitation d'accès mal faite.
EDIT: Je ne connais pas les seedbox, mais etes vous sur d'avoir un accès shell ?
Si je regarde la doc Online, ils ne parlent que d'un accès sftp.


pires57 vous demandait les logs sur le serveur pas sur le client.


Dernière chose, pas de sudo pour une connexion ssh !
Il n'y a aucun besoin d'etre root sur le client pour un accès ssh à un serveur.

obelix1502@obelix1502-All-Series ~ $ sudo ssh manon123@62.210.85.211

Car alors vous utilisez les infos de connexions de root:
le known_hosts ( la liste des serveurs ssh que vous avez deja indiqué comme sures )
et aussi les clés de root dans /root/.ssh/ et pas celles de l'utilisateur dans /home/obelix1502/.ssh/
( pas bloquant dans votre cas, car vous avez une connexion par mot de passe ).

Dernière modification par droopy191 (Le 17/08/2016, à 20:22)

Hors ligne

#7 Le 17/08/2016, à 20:56

manon123

Re : [Résolu] Connexion ssh sur seedbox

Voici la réponse que pires57 demandait :

obelix@62-210-85-211:~$ 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 yes
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 yes

# 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

Distro: Manjaro 20.1-2

Hors ligne

#8 Le 17/08/2016, à 21:10

manon123

Re : [Résolu] Connexion ssh sur seedbox

J'ai comparé ce fichier et le mien et mis identiquement la même chose mais j'obtiens toujours ceci :

obelix1502@obelix1502-All-Series ~ $ ssh obelix@62.210.85.211
The authenticity of host '62.210.85.211 (62.210.85.211)' can't be established.
ECDSA key fingerprint is SHA256:h+WmgaCBLeyhe9y/+QhqC423XRz1ulsVrqMyPxBtX8w.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/obelix1502/.ssh/known_hosts).
obelix@62.210.85.211's password: 
Permission denied, please try again.
obelix@62.210.85.211's password: 
Permission denied, please try again.
obelix@62.210.85.211's password: 
Permission denied (publickey,password).

Distro: Manjaro 20.1-2

Hors ligne

#9 Le 18/08/2016, à 00:40

manon123

Re : [Résolu] Connexion ssh sur seedbox

Ne cherchez plus, j'ai trouvé.

En fait, lorsque j'ai changé d'ordi, j'ai formaté la /.

Donc mon /etc/ssh/sshd_config n'existait plus et ma clé privée non plus.

J'ai donc dû en recréer une et la transmettre au serveur par

ssh-copy-id -i ~/.ssh/id_rsa.pub <username>@<ipaddress>

Et en plus, lorsque j'avais changé mon mot de passe en mode rescue, j'étais en root et j'y ai pas fait attention, donc c'est le mot de passe root que j'avais changé et pas celui utilisateur.

Mais bien sûr lorsque je me connectais en utilisateur, je tapais mon mot de passe root. roll roll

Merci à tous.


Distro: Manjaro 20.1-2

Hors ligne