Résolu le 28-12-18 [Résolu] le serveur ssh/Mint ne marche PLUS...

Assistance concernant Linux Mint
Gersei
Messages : 55
Enregistré le : ven. 17 févr. 2017 22:07

[Résolu] le serveur ssh/Mint ne marche PLUS...

Message par Gersei »

Bonjour à tous,

j'avais fièrement réussi à faire communiquer mes deux ordi , l'un, le client sous xUbuntu 14.06 l'autre sous Mint17 Cinnamon jouant le role du serveur, par Dolphin en sftp/ssh. Clés RSA, sshd_config et tout, en suivant le tuto. Impec pendant quelques semaines. Et puis un matin, pof, plus rien: coté dolphin du client: "connexion refusée".
Et si je me mets côté serveur, et que je tape ssh mon_compte@mon_ip, je reste dans le vide.
Alors que dans l'autre sens, si je me mets en client coté Mint et que je fais ssh mon_compte2@xubuntu, j'ai une réponse et je me connecte.
J'ai désinstallé puis ré-installé open-ssh sur Mint (par la logithèque), pareil.
Voici mon fichier sshd_config (ça marchait avec PasswordAuthentication no, je l'ai remis à yes pour mes essais), y'a peut-être un truc que je ne vois pas :

Code : Tout sélectionner

# 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 without-password no
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
#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
UsePAM no

Si quelqu'un(e) pouvait me sortir de là, je lui en serais reconnaissant !
Merci d'avance,
Gersei
Modifié en dernier par Gersei le jeu. 21 sept. 2017 00:45, modifié 1 fois.
L'avantage quand on n'y connait rien, c'est qu'on a tout à apprendre ! ;)

hard tour: CPU Pentium G3260@3.3Ghz x 2 ; RAM 7.7Go; graph: Carte Nvidia GTX1050; wifi DWA-131
soft: Mint 17 Cinnamon 64 (2.2.16) en cours de remplacement par 21 Cinamon 5.4.12 en monoboot ; noyau: 5.15.0-48-generic
hard portable: SCHNEIDER SCL142ALDDP CPU N3350 @ 1.10GHz 2cores
soft: Mint 20.3 Cinnamon 64 ; noyau 5.4.0-128-generic

mpedro
Messages : 1517
Enregistré le : dim. 8 nov. 2015 22:13
Contact :

Re: le serveur ssh/Mint ne marche PLUS...

Message par mpedro »

C'est en LAN donc vérifie si l'IP locale n'a pas changé. Pour que ça ne change pas il faut fixer les baux DHCP. Les clés c'est pour le fun ;) en réseau domestique.
Modifié en dernier par mpedro le dim. 17 sept. 2017 18:18, modifié 2 fois.
Stretch 32bits cinnamon/Fedora25/Sarah
Compaq 8510p/MSI GE70/Raspberry Pi2

Avatar du membre
roromint
Messages : 2728
Enregistré le : dim. 28 févr. 2016 21:09
Localisation : ath

Re: le serveur ssh/Mint ne marche PLUS...

Message par roromint »

as tu un certain que je t'explique
au exemple:

Code : Tout sélectionner

ssh -p 22 rodrigue7800@192.168.0.11
pas cela pour

Code : Tout sélectionner

 
 ssh rodrigue7800@b50-70-laptop
une chose du essaie ton pc et autre pc

Code : Tout sélectionner

#ListenAddress 192.168.0.11 
par

Code : Tout sélectionner

#ListenAddress 0.0.0.0
merci
roromint
cordialement,
Ro.
-------------------------------------------------------
PS à lire du attentif pour mon handicap : je suis malentendant Étant dyslexique, j'ai des problèmes quant à la rédaction de messages en français courant. Je vous prie dès lors d'accepter toutes mes excuses si mes interventions peuvent vous paraître étranges et je vous remercie d'avance pour votre compréhension.
PS: pour les membres, ne pas faire la message privé de moi svp ! merci

Gersei
Messages : 55
Enregistré le : ven. 17 févr. 2017 22:07

Re: le serveur ssh/Mint ne marche PLUS...

Message par Gersei »

merci Roro !

alors tes essais:
du xubuntu, normalement le client, sur lui-même:

Code : Tout sélectionner

gerard@marion-laptop:~$ ssh -p 22 gerard@192.168.0.20
gerard@192.168.0.20's password: 
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-128-generic i686)

 * Documentation:  https://help.ubuntu.com/

Last login: Sun Sep 17 11:23:59 2017 from intel64
gerard@marion-laptop:~$ 

meme avec localhost:

Code : Tout sélectionner

gerard@marion-laptop:~$ 
gerard@marion-laptop:~$ ssh -p 22 gerard@localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 8f:14:blablabla:d8:a6:58:02:bc:11.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
gerard@localhost's password: 
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-128-generic i686)

 * Documentation:  https://help.ubuntu.com/

Last login: Sun Sep 17 18:26:24 2017 from marion-laptop.local
gerard@marion-laptop:~$ 

Donc je pense que ssh marche cote client.

Cote serveur, /Mint, ifconfig me confirme l'ip.
Le firewall est désactivé.
L'avantage quand on n'y connait rien, c'est qu'on a tout à apprendre ! ;)

hard tour: CPU Pentium G3260@3.3Ghz x 2 ; RAM 7.7Go; graph: Carte Nvidia GTX1050; wifi DWA-131
soft: Mint 17 Cinnamon 64 (2.2.16) en cours de remplacement par 21 Cinamon 5.4.12 en monoboot ; noyau: 5.15.0-48-generic
hard portable: SCHNEIDER SCL142ALDDP CPU N3350 @ 1.10GHz 2cores
soft: Mint 20.3 Cinnamon 64 ; noyau 5.4.0-128-generic

Gersei
Messages : 55
Enregistré le : ven. 17 févr. 2017 22:07

Re: le serveur ssh/Mint ne marche PLUS...

Message par Gersei »

cote Mint vers xubuntu:
d'abord ifconfig:

Code : Tout sélectionner

wlan0     Link encap:Ethernet  HWaddr 54:2a:a2:90:43:b1  
          inet adr:192.168.0.49  Bcast:192.168.0.255  Masque:255.255.255.0
Mint sur lui-meme:

Code : Tout sélectionner

gerard@Intel64 ~ $ 
gerard@Intel64 ~ $ ssh -p 22 gerard@192.168.0.49
ssh: connect to host 192.168.0.49 port 22: Connection refused
gerard@Intel64 ~ $ 
demande meme pas le pwd !

du Mint vers xubuntu:

Code : Tout sélectionner

gerard@Intel64 ~ $ 
gerard@Intel64 ~ $ ssh -p 22 gerard@192.168.0.20
gerard@192.168.0.20's password: 
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-128-generic i686)

 * Documentation:  https://help.ubuntu.com/

Last login: Sun Sep 17 18:31:06 2017 from localhost
gerard@marion-laptop:~$ cd Public
gerard@marion-laptop:~/Public$ exit
déconnexion
Connection to 192.168.0.20 closed.

:(
L'avantage quand on n'y connait rien, c'est qu'on a tout à apprendre ! ;)

hard tour: CPU Pentium G3260@3.3Ghz x 2 ; RAM 7.7Go; graph: Carte Nvidia GTX1050; wifi DWA-131
soft: Mint 17 Cinnamon 64 (2.2.16) en cours de remplacement par 21 Cinamon 5.4.12 en monoboot ; noyau: 5.15.0-48-generic
hard portable: SCHNEIDER SCL142ALDDP CPU N3350 @ 1.10GHz 2cores
soft: Mint 20.3 Cinnamon 64 ; noyau 5.4.0-128-generic

mpedro
Messages : 1517
Enregistré le : dim. 8 nov. 2015 22:13
Contact :

Re: le serveur ssh/Mint ne marche PLUS...

Message par mpedro »

c'est de xubuntu à mint que ça marche pas?
Edition : tu reprends tout à zéro viewtopic.php?f=29&t=2188" onclick="window.open(this.href);return false; c'est rapide et pour éviter les conflits d'IP au lieu de mettre l'ip il faut taper localhost
Modifié en dernier par mpedro le dim. 17 sept. 2017 19:21, modifié 1 fois.
Stretch 32bits cinnamon/Fedora25/Sarah
Compaq 8510p/MSI GE70/Raspberry Pi2

Gersei
Messages : 55
Enregistré le : ven. 17 févr. 2017 22:07

Re: le serveur ssh/Mint ne marche PLUS...

Message par Gersei »

Je ne comprends pas ton '#ListenAddress 0.0.0.0'..
c'est comme ça dans mon sshd-config, et c'est en commentaires.
il faut enlever le # ?
L'avantage quand on n'y connait rien, c'est qu'on a tout à apprendre ! ;)

hard tour: CPU Pentium G3260@3.3Ghz x 2 ; RAM 7.7Go; graph: Carte Nvidia GTX1050; wifi DWA-131
soft: Mint 17 Cinnamon 64 (2.2.16) en cours de remplacement par 21 Cinamon 5.4.12 en monoboot ; noyau: 5.15.0-48-generic
hard portable: SCHNEIDER SCL142ALDDP CPU N3350 @ 1.10GHz 2cores
soft: Mint 20.3 Cinnamon 64 ; noyau 5.4.0-128-generic

Gersei
Messages : 55
Enregistré le : ven. 17 févr. 2017 22:07

Re: le serveur ssh/Mint ne marche PLUS...

Message par Gersei »

Mon sujet n'est pas dans la bonne rubrique, je pensais le mettre dans "logiciels", ça a du glisser... comment on fait pour le changer ?
L'avantage quand on n'y connait rien, c'est qu'on a tout à apprendre ! ;)

hard tour: CPU Pentium G3260@3.3Ghz x 2 ; RAM 7.7Go; graph: Carte Nvidia GTX1050; wifi DWA-131
soft: Mint 17 Cinnamon 64 (2.2.16) en cours de remplacement par 21 Cinamon 5.4.12 en monoboot ; noyau: 5.15.0-48-generic
hard portable: SCHNEIDER SCL142ALDDP CPU N3350 @ 1.10GHz 2cores
soft: Mint 20.3 Cinnamon 64 ; noyau 5.4.0-128-generic

Gersei
Messages : 55
Enregistré le : ven. 17 févr. 2017 22:07

Re: le serveur ssh/Mint ne marche PLUS...

Message par Gersei »

@mpedro
Merci. Oui c'est pour se connecter au seveur ssh du Mint.
Mais meme du Mint sur lui meme, ça ne marche pas.
L'avantage quand on n'y connait rien, c'est qu'on a tout à apprendre ! ;)

hard tour: CPU Pentium G3260@3.3Ghz x 2 ; RAM 7.7Go; graph: Carte Nvidia GTX1050; wifi DWA-131
soft: Mint 17 Cinnamon 64 (2.2.16) en cours de remplacement par 21 Cinamon 5.4.12 en monoboot ; noyau: 5.15.0-48-generic
hard portable: SCHNEIDER SCL142ALDDP CPU N3350 @ 1.10GHz 2cores
soft: Mint 20.3 Cinnamon 64 ; noyau 5.4.0-128-generic

zeb
Messages : 16473
Enregistré le : ven. 19 juin 2015 22:13
Localisation : plus ici

Re: le serveur ssh/Mint ne marche PLUS...

Message par zeb »

Salut ;)
Gersei a écrit :Mon sujet n'est pas dans la bonne rubrique, je pensais le mettre dans "logiciels", ça a du glisser... comment on fait pour le changer ?
Je déplace plutôt dans général ;)

Répondre