Muluske
Registered User
Hallo Leuts!
Ich wollte bei meinem VS den SSH mit Privatekey absichern.
Leider kann man sich immer noch mit Name und Passwort einloggen.
So bin ich vorgegangen:
Dummy erstellt
"Permit Root Login" auf no gesetzt und "Password-Auth" auf no gesetzt.
Mit PuTTY-Gen habe ich den PK konvertiert und gespeichert. Wenn ich mich nun mit dem PK unter
PuTTY->Auth einlogge funzt das wunderbar, nur kann ich mich aber auch wie gewohnt mit "scherzkeks" und Passwort im SSH und SFTP einloggen...
Habe ich was vergessen? Eigentlich sollte es doch kein Passwort annehmen und nur über Privatkey zulassen?
Hat jemand eine Idee?
Ich wollte bei meinem VS den SSH mit Privatekey absichern.
Leider kann man sich immer noch mit Name und Passwort einloggen.
So bin ich vorgegangen:
Dummy erstellt
Code:
adduser scherzkeks
Code:
mkdir /home/scherzkeks/.ssh
Code:
chmod 700 /home/scherzkeks/.ssh
Code:
ssh-keygen -t rsa -b 8192
Code:
mv /home/id-rsa.pub /home/scherzkeks/.ssh/authorized_keys
Code:
chmod 600 /home/scherzkeks/.ssh/authorized_keys
Code:
chown -hR scherzkeks:scherzkeks /home/scherzkeks/.ssh
Code:
nano /etc/ssh/sshd_config
Code:
/etc/init.d/ssh restart
Mit PuTTY-Gen habe ich den PK konvertiert und gespeichert. Wenn ich mich nun mit dem PK unter
PuTTY->Auth einlogge funzt das wunderbar, nur kann ich mich aber auch wie gewohnt mit "scherzkeks" und Passwort im SSH und SFTP einloggen...
Habe ich was vergessen? Eigentlich sollte es doch kein Passwort annehmen und nur über Privatkey zulassen?
Hat jemand eine Idee?