PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SSH Server startet nicht wegen Fehler in sshd_confg?!



Boaz
29.08.04, 01:38
Hallo allerseits,

ich bin noch ein ziemlicher Newbie in Sachen Linux und habe ein Problem.
Ich benutze SuSE Linux 9.1 und ich mich heute von meinem Notebook(LAN) aus via SSH auf meinen Rechner einloggen wollte, konnte keine Verbindung aufgebaut werden, umgekehrt aber schon. Also hab ich ein bischen gelesen und gesehen dass auf meinem Rechner ein SSH-Server laufen muss. Jedoch wußte ich nicht wie ich das überprüfen sollte und bin auf das Programm "Webmin" gestoßen. Wenn ich in Webmin unter SSH-Server auf "Starte Server" klicke, kommt folgende Fehlermeldung: Der SSH-Server konnte nicht gestartet werden : Starting SSH daemon/etc/sshd_config line 104: Deprecated option ReverseMappingCheck ..failed. Ich hab mal in die sshd_config reingeschaut und das no bei ReverseMappingCheck in yes umgewandelt, jedoch ohne Erfolg. Ich weiß, Ihr könnt mir helfen! Vielen Dank schon mal!
Hier ist die sshd_config:

$OpenBSD: sshd_config,v 1.68 2003/12/29 16:39:50 millert Exp $

# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.

#Port 22
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

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

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable support for the deprecated 'gssapi' authentication
# mechanism to OpenSSH 3.8p1. The newer 'gssapi-with-mic' mechanism is included
# in this release. The use of 'gssapi' is deprecated due to the presence of
# potential man-in-the-middle attacks, which 'gssapi-with-mic' is not susceptible to.
#GSSAPIEnableMITMAttack no

# Set this to 'yes' to enable PAM authentication (via challenge-response)
# and session processing. Depending on your PAM configuration, this may
# bypass the setting of 'PasswordAuthentication' and 'PermitEmptyPasswords'
UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
ReverseMappingCheck yes
GatewayPorts no
AllowTcpForwarding yes
KeepAlive yes
Protocol 1,2

MFG

Boaz

Roger Wilco
29.08.04, 02:33
Kommentiere die Zeile mit ReverseMappingCheck aus (also setze ein '#' davor) und versuche den SSHd danach zu starten, z. B. mit '/etc/init.d/sshd start' oder wieder über Webmin.

Boaz
29.08.04, 03:01
Funktioniert leider auch nicht. :( Habe es über Webmin und die Shell probiert.
Bei Webmin kommt die Meldung "Der SSH Server konnte nicht gestartet werden : Starting SSH daemon..failed und in der Shell steht " Starting SSH daemon failed"
Trotzdem vielen Dank!

MFG
Boaz

Roger Wilco
29.08.04, 12:00
Der Grund, weshalb der SSHd nicht gestartet werden kann, müsste in deinen Logfiles zu finden sein. Wenn du wider Erwarten nichts findest, dann starte den SSHd im Debug-Modus mit '/usr/sbin/sshd -dD'.

Boaz
29.08.04, 12:29
Kannst du mir bitte sagen, in welcher Datei ich suchen muss?! :confused:

Boaz
29.08.04, 12:34
Wenn ich sshd im Debugmodus starte und die ReveresMappingCheck auskommentiert ist, kommt folgendes:

debug1: sshd version OpenSSH_3.8p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
Generating 768 bit RSA key.
RSA key generation complete.

und wenn die Zeile wieder drin ist, kommt dies:

/etc/ssh/sshd_config line 104: Deprecated option ReverseMappingCheck
debug1: sshd version OpenSSH_3.8p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
Generating 768 bit RSA key.
RSA key generation complete.


Funktioniert danach aber auch nicht.

dehomer
04.10.04, 21:57
Auf meinem Server hatte ich das selbe Problem. Ich habe ewig gesucht und nichts gefunden aber irgendwann gings dann!
Hab keine Ahnung warum, ich hab in der zwischenzeit mit portmap und solche Scherze experimentiert. Vielleicht hat das irgendwas bewirkt. Auf meinem Notebook gehts immer noch nicht, aber im Debug-Modus startet er! Allerdings halt ohne Multithreading.