USD
0
Hoşgeldiniz
Lütfen Giriş Yapın
Disable Root SSH Login on Linux
One of the biggest security holes you could open on your server is to allow directly logging in as root through ssh, because any cracker can attempt to brute force your root password and potentially get access to your system if they can figure out your password.It’s much better to have a separate account that you regularly use and simply sudo to root when necessary. Before we begin, you should make sure that you have a regular user account and that you can su or sudo to root from it.To fix this problem, we’ll need to edit the sshd_config file, which is the main configuration file for the sshd service. The location will sometimes be different, but it’s usually in /etc/ssh/. Open the file up while logged on as root.vi /etc/ssh/sshd_configFind this section in the file, containing the line with “PermitRootLogin” in it.#LoginGraceTime 2m#PermitRootLogin no#StrictModes yes#MaxAuthTries 6Make the line look like this to disable logging in through ssh as root.PermitRootLogin noNow you’ll need to restart the sshd service:/etc/init.d/sshd restartNow nobody can brute force your root login, at least.
Aradığınız Bilgiyi Bulamıyor musunuz?
Bilgi bankasını detaylı olarak incelediniz, fakat ihtiyacınız olan bilgiyi bulamıyorsanız,
Bir Destek Talebi Oluşturun.
Bildiriminiz için Teşekkür Ederiz.
Bunun için üzgünüz :( Daha iyisi için çalışacağız.
Daha önce oylama yaptınız.
(13203 defa görüntülendi. / 189 kişi faydalı buldu.)
Copyright © 2024 Tüm Hakları Saklıdır.