الشل SSH الدخول بباسورد او بدون من خلال private key فى password authentication
الفرق بين PermitRootLogin"without-password" vs "no"
WHM Terminal and sshd-config setting PermitRootLogin to no
PermitRootLogin to “without-password” or “no”What is the different?
حل مشكلة whm SSH direct root logins are permitted

-------------------------------------------------------------

هناك طريقتين لحماية Root Account فى الشيل
-------------------------------------------------------------
So there are two simple ways to avoid the possibility of an attack to the root account
PermitRootLogin to “without-password” or “no”What is the different?

قم بفتح terminal ثم ضع هذا الامر

كود:
nano /etc/ssh/sshd_config
ثم ابحث عن PermitRootLogin yes وقم بتبديل yes
اما “without-password” or “no”
ولا ننصح بعمل no لاتعمل بعد ريستارت السيرفر كامل
ثم قم بعمل ريستارت SSH Service لا بد من ذلك.



-------------------------------------------------------------
الطريقة الاولي : PermitRootLogin without-password
-------------------------------------------------------------
الميزة : يتم استخدام حساب root الافتراضي
Enable root access via ssh, but only with rsa key



Edit the file /etc/ssh/sshd_config Look for this line
#PermitRootLogin yes
And change it to: PermitRootLogin without-password
* ملحوظة قم يحذف # لكي يفعل الامر
allows root, but *only* if keys are set up, or another form of authentication,'
but *not* password authentication; - it will deny even a valid password.

-------------------------------------------------------------
الطريقة الثانية : PermitRootLogin no
-------------------------------------------------------------
تسبب مشاكل لا ننصح بها

الميزة : لايتم استخدام حساب root الافتراضي وهيتطلب اعطاء صلاحيات لحساب اخر
Disable root access via ssh to your server



Edit the file /etc/ssh/sshd_config Look for this line
#PermitRootLogin yes
And change it to: PermitRootLogin no
* ملحوظة قم يحذف # لكي يفعل الامر
denies root all the time, even if keys have been set up for equivalence.