Disable Direct Root Login and User Access via SSH to Server Huwag paganahin ang Direct Root Pag-login at User Access sa pamamagitan ng SSH sa Server
Everybody knows, including hackers and attackers that all Linux and UNIX flavored systems come with a all powerful root user account, which once get compromised, mean all hell breaks loose. Alam lahat ng tao, kabilang ang mga hackers at attackers na ang lahat ng Linux at ang mga sistemang UNIX may lasa dumating na may isang malakas na ang lahat ng root user account, na kung saan isang beses makakuha kompromiso, ibig sabihin ng lahat ng hell break maluwag. So it's a good security practice to disable the ability for root user to able to login and gain access to the server system via SSH directly (of course, the system must have disabled FTP access). Kaya ito ay isang magandang seguridad pagsasanay na huwag paganahin ang kakayahan para sa mga ugat sa user na makapag-login at makakuha ng access sa server ng sistema sa pamamagitan ng SSH direkta (of course, ang sistema ay dapat na may-disable FTP access). After disabling direct root SSH remote login, the chance for the brute force hacking to success is greatly reduced. Pagkatapos hindi direktang root SSH malayuang pag-login, ang mga pagkakataon para sa mga taong malupit na puwersa pataga sa tagumpay ay lubos na nabawasan.
To turn off and disable direct root SSH login, follow this simple tutorial: Upang patayin at hindi direktang root SSH sa pag-login, sundin ang mga simpleng tutorial:
IMPORTANT: Make sure you have another account (preferably belongs to wheel user group too) which is able to login via SSH remotely, and able to SU to root user account. IMPORTANTE: Siguraduhin na mayroon kang ibang account (preferably aari sa gulong gumagamit ng grupo masyadong) na kung saan ay may kakayahan sa pag-login sa pamamagitan ng SSH malayo, at makapag-Su sa root user account. Else you risk been locked out from your server. Sino pa ang paririto ka panganib na naka-lock out mula sa iyong server.
- SSH into server and login as root. SSH sa server at sa pag-login bilang root.
- In command shell, use pico or vi to edit sshd_config file by typing one of the following commands: Sa command shell, gamitin Pico o vi upang i-edit ang sshd_config file sa pag-type ng isa sa mga sumusunod na command:
pico /etc/ssh/sshd_config Pico / etc / SSH / sshd_config
vi /etc/ssh/sshd_config vi / etc / SSH / sshd_config - Scroll down the SSH server configuration file and locate a line like below: Mag-scroll down ang SSH server configuration file at hanapin ng isang linya tulad ng sa ibaba:
#PermitRootLogin yes # PermitRootLogin yes
- Uncomment the line by removing the hash symbol (#), and then change the “yes” to “no”. Uncomment ang linya sa pamamagitan ng pagtanggal ng hash simbolo (#), at pagkatapos ay palitan ang "oo" sa "no". The final line should look like below: Ang huling linya ay dapat magmukhang ganito sa ibaba:
PermitRootLogin no PermitRootLogin walang
- Save the config file. I-save ang config file. In pico, press Ctrl-o, follow by Ctrl-x. Sa Pico, pindutin ang Ctrl-o, sundin ng Ctrl-x. In vi, type :wq and press Enter. Sa vi, i-type ang: wq at pindutin ang Enter.
- Restart SSH server by typing the following command in command line, and press Enter: Restart SSH server pamamagitan ng pag-type ang mga sumusunod na command sa command line, at pindutin ang Enter:
/etc/rc.d/init.d/sshd restart / etc / rc.d / init.d / sshd restart
- Logout from SSH connection. Logout mula sa SSH koneksyon. Try to login as root, it should fail with Access denied error. Subukang mag-log in bilang root, ito ay dapat na mabibigo sa Access tinanggihan error. To access root account, login with your own user name and password, and then SU to root. Upang ma-access ang root account, sa pag-login gamit ang iyong sariling user name at password, at pagkatapos ay Su sa root.
IMPORTANT : The page is machine translated and provided "as is" without warranty. MAHALAGA: Ang mga pahina ay makina isinalin at ibinigay "gaya ay" walang warranty. Machine translation may be difficult to understand. Machine translation ay maaaring maging mahirap na maintindihan. Please refer to Mangyaring tingnan ang original English article orihinal na Ingles na artikulo whenever possible. hangga't maaari.
Related Articles Mga Kaugnay na Akda
- How to Get Linux Server Sends Email Alert on Root Login Paano Kumuha ng Linux Server Ipinapandala Email Alert Root sa Login
- How to Disable or Enable Vista User Access Control in Command Prompt Paano na-disable o Paganahin ang Vista User Access Control sa Command Prompt
- Reset the Root Password of MySQL Server I-reset ang Root Password ng MySQL Server
- Apple iPhone Root Password and Mobile User Password Apple iPhone Root Password at Mobile User Password
- PCLoginNow (PC Login Now) Free Download to Reset Windows Admin or User Password PCLoginNow (PC Login Ngayon) Libreng Download sa I-reset ang Windows Admin o User Password
- Change and Reset MySQL root Password Baguhin ang MySQL root at I-reset ang Password
- Review Gmail Account Recent Login or Access Activity History and Remote Logout Intruder or Hacker Repasuhin ang Gmail Account Recent Login o Access Aktibidad Kasaysayan at Remote Logout entremetido o Hacker
- Gmail Access Methods and Login Link URLs Gmail Access pamamaraan at Login Link URL
- Disable and Turn Off Windows XP Login Screen and Show Traditional NT Log On to Windows Box Huwag paganahin at Lumiko Off Windows XP Login Screen at Ipakita Tradisyonal NT Mag log-on sa Windows Box
- Reveal and Recover Windows NT, 2000, XP, 2003 and Longhorn Login (including Administrator) Username and Password with Login Recovery Ibunyag at mabawi ang Windows NT, 2000, XP, 2003 at Longhorn Login (kasama na ang Administrador) Username at Password sa Login Recovery









































