Page 1 of 1
PermitRootLogin funktioniert nicht...
Posted: 2005-08-05 20:59
by beeker
Huhu,
möglicher Weise sehe ich den Wald vor lauter Bäumen nicht mehr 8O , aber irgendwie ignoriert mein sshd den Eintrag PermitRootLogin no aus der sshd_config vollkommen. Völlig egal was ich da rein tippse der root kommt trotzdem rein.
Habe den sshd natürlich auch schön brav restartet nach jeder Ã?nderung.
Was habe ich übersehen??
Re: PermitRootLogin funktioniert nicht...
Posted: 2005-08-05 21:15
by Joe User
Re: PermitRootLogin funktioniert nicht...
Posted: 2005-08-05 21:24
by beeker
Stand bei mir auf UsePAM yes. Die Umstellung auf no hat aber auch nicht geholfen. Alles beim Alten. Der root darf rein.
Re: PermitRootLogin funktioniert nicht...
Posted: 2005-08-06 09:27
by Joe User
Re: PermitRootLogin funktioniert nicht...
Posted: 2005-08-06 16:11
by beeker
So, ich hab hier mal die sshd_config...
Nach der ganzen Rumprobiererei sieht die schon etwas wild aus.
Code: Select all
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
#PermitRootLogin without-password
PermitRootLogin no
# Don't read ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd no
PrintLastLog no
KeepAlive yes
# Privilege seperation geht nicht unter 2.2 mit eingeschalteter Kompression,
# da dort mmap anders implementiert ist:
Compression no
# Logging
SyslogFacility AUTH
LogLevel DEBUG
#obsoletes QuietMode and FascistLogging
#RhostsAuthentication no
# 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
RSAAuthentication yes
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
PermitEmptyPasswords no
# Uncomment to disable s/key passwords
#ChallengeResponseAuthentication no
# Uncomment to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt yes
# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no
# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes
#CheckMail yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
#ReverseMappingCheck yes
#Subsystem sftp /usr/lib/sftp-server
UsePAM no
Re: PermitRootLogin funktioniert nicht...
Posted: 2005-08-06 17:36
by timeless2
ssh neu gestartet?
Re: PermitRootLogin funktioniert nicht...
Posted: 2005-08-06 18:22
by beeker
timeless2 wrote:ssh neu gestartet?
Jep... dachte ich jedenfalls...oh, wie peinlich :roll: ! Hab mir nämlich für alle wichtigen Sachen (u.a. auch dem sshd) kleine Scripts zum Starten/Beenden/Neu-Starten gemacht und beim sshd (möglicherweise völlig im Wahn) aus versehen
anstelle von
reingetippst. Dann kann das auch nicht klappen. Wie man an so'nem kleinen Scheisserchen verzweifeln kann. Unglaublich.
Aber vielen Dank für die Anteilnahme. Werde mich bessern!
Re: PermitRootLogin funktioniert nicht...
Posted: 2005-08-06 22:39
by timeless2
Manchmal macht man sich die Arbeit zusätzlich schwer, dafür ist die Lösung umso einfacher
