In diesem Artikel erkläre ich dir, wie du den Login mit dem Benutzer Root ia SSH verbieten kannst. Dies sichert deinen Server gegen Angriffe.
useradd -g users -d /home/Benutzername -s /bin/bash Benutzername
passwd Benutzername
mkdir /home/Benutzername
chown Bennutzername:users /home/Benutzername
nano /etc/ssh/sshd_config
- ändere
PermitRootLogin yes
- in
PermitRootLogin no
- unter Ubuntu oder Debian gibts folgendes ein:
/etc/init.d/ssh reload
- Nun kann man sich nicht mehr mit dem Benutzer Root anmelden. Um sich Root-Rechte zu verschaffen, gibt man als der eben neu erstellte Benutzer su -l ein. Anschließend wird das Passwort des Benutzers Root abgefragt. Gibt man dieses korrekt ein, ist man als Root angemeldet.
Hi there, I found your blog by means of Google whilst looking for a similar matter, your site got here up, it seems good. I’ve bookmarked it in my google bookmarks.
Hello there, simply become alert to your blog thru Google, and located that it’s really informative. I’m going to be careful for brussels. I’ll appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers!
This web site really has all of the information and facts I needed about this subject and didn’t know who to ask.
Hi! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains. If you know of any please share. Many thanks!
Pingback: Root Login unter Ubuntu/Debian deaktivieren - Hosting solutions