PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SSH: Login nur mit Schlüssel



mbe
13.06.06, 17:16
Was muss ich einstellen damit der Login perr SSH und erzeugtem Schlüssel NUR noch mit dem erzeugten Key funktioniert? Ich kann mich nämlich immer noch mit Benutzer root und Passwort einloggen!

newton
13.06.06, 18:24
Ich kann mich nämlich immer noch mit Benutzer root und Passwort einloggen!
Hast Du denn fuer root auch einen Schluessel angelegt? Wenn ein Schluessel vorhanden ist, wird der normalerweise auch benutzt.

sirmoloch
13.06.06, 18:29
PermitRootLogin
Specifies whether root can log in using ssh(1). The argument
must be ``yes'', ``without-password'', ``forced-commands-only''
or ``no''. The default is ``yes''.

If this option is set to ``without-password'' password authenti-
cation is disabled for root.

If this option is set to ``forced-commands-only'' root login with
public key authentication will be allowed, but only if the
command option has been specified (which may be useful for taking
remote backups even if root login is normally not allowed). All
other authentication methods are disabled for root.

If this option is set to ``no'' root is not allowed to log in.



PasswordAuthentication
Specifies whether password authentication is allowed. The
default is ``yes''.

RTFM... Geht auch ganz schnell...

Deifl
13.06.06, 18:30
root sollte generell der Zugang verwehrt werden:

PermitRootLogin no

mbe
13.06.06, 18:52
Danke erstmal!

Ich habe without-password eingestellt, der Login von Root mit Password ist aber trotzdem noch möglich! Die Schlüssel sind natürlich schon erstellt. Kann mir jemand helfen?

Deifl
13.06.06, 18:54
Schon den sshd neu gestartet?

mbe
13.06.06, 18:57
Klar! Der Login mit dem Schlüssel ist ja auch möglich! Aber auch der ohne!