الشل 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 لا بد من ذلك.
https://www.rise.company/upload/uplo...9735764971.png
-------------------------------------------------------------
الطريقة الاولي : PermitRootLogin without-password
-------------------------------------------------------------
الميزة : يتم استخدام حساب root الافتراضي
Enable root access via ssh, but only with rsa key
https://www.rise.company/upload/uplo...6325137582.png
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
https://www.rise.company/upload/uplo...6325130121.png
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.