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 02/10/2007, à 07:48

korben00

[RESOLU]SSH me rends dingue

Hello,

J'ai un super probleme assez hard à résoudre.

Depuis hier je ne peux plus me connecter en SSH...

En fait, ça se connecte, ça me demande mon login , et une fois que je l'ai entré, mon putty se ferme tout seul.

J'ai fais quelques tests en démarrant en mode rescue et en changeant la config du sshd_config mais je n'arrive à rien.

Pouvez vous m'aider ?

Merci beaucoup

Dernière modification par korben00 (Le 02/10/2007, à 08:17)

Hors ligne

#2 Le 02/10/2007, à 07:50

korben00

Re : [RESOLU]SSH me rends dingue

Voici le contenu de mon fichier sshd_config

# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for Port 1982 # 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
#Privilege Separation is turned on for security UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key KeyRegenerationInterval 3600 ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin 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

# 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

UsePAM yes

AllowUsers korben

Hors ligne

#3 Le 02/10/2007, à 08:04

dexinou

Re : [RESOLU]SSH me rends dingue

Remplace le PermitRootLogin no par yes
Met en commentaire Allowusers korben
et redémarre SSH
Ensuite essai de te connecter.

Dernière modification par dexinou (Le 02/10/2007, à 08:05)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne

#4 Le 02/10/2007, à 08:15

korben00

Re : [RESOLU]SSH me rends dingue

Finalement, je suis reparti de 0

J'ai mis ça en fichier de config

Port 22
#ListenAddress 192.168.1.1
#HostKey /etc/ssh/ssh_host_key
#HostKey /etc/ssh/ssh_host_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
ServerKeyBits 1024
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
IgnoreRhosts yes
IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding no
PrintMotd yes
SyslogFacility AUTH
LogLevel INFO
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords no
AllowUsers korben

et ça a marché !

Merci !! :-)

Hors ligne

#5 Le 02/10/2007, à 11:16

dexinou

Re : [RESOLU]SSH me rends dingue

Je sais pas si tu as remarqué mais dans ta première config il n'y avait pas le numéro de port 22

Dernière modification par dexinou (Le 02/10/2007, à 11:17)


Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...

Hors ligne