Re: ssh corruption / new configuration
Bon pour faire simple, j'ai reconfiguré ssh sur le serveur, viré les
clefs publiques contenues dans known_hosts et sur les postes j'ai
regénérer les jeux de clefs.
Ensuite je fais un: scp .ssh/id_dsa.pub
root@192.168.0.74:/root/.ssh/authorized_keys
Mais celane me permet pas de me connecter sans fournir de mot de passe.
En effet lorsque je fais un: ssh root@192.168.0.74
il me demande la pass-phrase de ma clef et si echec, il demande le mot
de passe root sur la machine distante.
Or dans mon fichier de conf de sshd:cat sshd_config
# Package generated configuration file
# See the sshd(8) 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
ListenAddress 192.168.0.74
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 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 no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Change to yes to enable tunnelled clear text passwords
PasswordAuthentication no
# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no
# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
Banner /etc/issue.net
Subsystem sftp /usr/lib/sftp-server
UsePAM yes
--------------------------------------------------
Nota bene: PasswordAuthentication no !!!
Alors pourquoi au lieux d'un simple échec il me demande la pass-phrase
et le mot de passe du user si echec de la pass-phrase ???
De plus (je cummule les problèmes), la connexion ssh se fait en IPv6.
Pour forcer l'ipV4, il faut lancer le serveur ssh avec l'option -4
oui mais il faut modifier le fichier /etc/init.d.ssh qui lance le deamon
avec les options dans $SSH_OPTS mais ou s'initialise cette variable et
comment la modifier proprement ?
Désolé pour toutes ces questions!
PyFux
Reply to: