Disable Direct Root Login and User Access via SSH to Server Išjungti Tiesioginė Root Prisijunkite Vartotojo Prieiga per SSH prie serverio
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. Visi žino, įskaitant kompiuterių piratai ir puola, kad visos Linux ir UNIX sistemų tematikos ateiti su visais galingu root vartotojo sąskaita, kuri kartą gauti pavojus, tai visas hell breaks loose. 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). Taigi, tai gerą saugumo patirtį, norėdami išjungti root vartotojo galimybės galėtų prisijungti ir gauti prieigą prie serverio sistemos per SSH tiesiogiai (Žinoma, sistema turi būti išjungta FTP access). After disabling direct root SSH remote login, the chance for the brute force hacking to success is greatly reduced. Po išjungimo tiesiogiai root SSH nuotolinio prisijungimo, už Brute Force įsilaužimo sėkmės tikimybė yra labai sumažintas.
To turn off and disable direct root SSH login, follow this simple tutorial: Norėdami išjungti ir išjungti tiesioginį root SSH prisijungimo, atlikite šį paprastą 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. SVARBU: Įsitikinkite, kad turite kitą sąskaitą (pageidautina priklauso ratų vartotojų grupės taip pat), kurios galėtų prisijungti per SSH nuotoliniu būdu, ir galėtų Su root vartotoju. Else you risk been locked out from your server. Priešingu atveju rizika buvo užblokuota iš jūsų serverio.
- SSH into server and login as root. Į serverio SSH ir prisijungti kaip root.
- In command shell, use pico or vi to edit sshd_config file by typing one of the following commands: Visų komandų apvalkalas, naudokite pico arba VI redaguoti sshd_config failą įrašyti vieną iš šių komandų:
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: Pereikite SSH serverio konfigūracijos failą ir surasti, kaip žemiau eilutė:
#PermitRootLogin yes # PermitRootLogin Taip
- Uncomment the line by removing the hash symbol (#), and then change the “yes” to “no”. Uncomment pašalinant maišos simbolis linija (#), ir tada pakeisti "taip" "ne". The final line should look like below: Paskutinė eilutė turi atrodyti žemiau:
PermitRootLogin no PermitRootLogin nėra
- Save the config file. Prisiminti konfigūracijos failą. In pico, press Ctrl-o, follow by Ctrl-x. Be Pico, paspauskite Ctrl-O, tolesni Ctrl-X. In vi, type :wq and press Enter. VI, tipas: WQ ir paspauskite Enter.
- Restart SSH server by typing the following command in command line, and press Enter: Paleiskite SSH serverio įvedę šią komandą į komandų eilutę ir paspauskite Enter:
/etc/rc.d/init.d/sshd restart / etc / rc.d / init.d / sshd restart
- Logout from SSH connection. Atsijungti nuo SSH. Try to login as root, it should fail with Access denied error. Bandykite prisijungti kaip root, tai nepavyktų su Access denied klaida. To access root account, login with your own user name and password, and then SU to root. Norėdami prieiti prie šaknų sąskaitą, prisijunkite su savo vartotojo vardą ir slaptažodį, tada SU prie šaknų.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- How to Get Linux Server Sends Email Alert on Root Login Kaip gauti "Linux" serveris siunčia elektroniniu paštu šaknų Prisijungti
- How to Disable or Enable Vista User Access Control in Command Prompt Kaip išjungti arba įjungti Vista User Access Control į Command Prompt
- Reset the Root Password of MySQL Server Atstatyti slaptažodį root MySQL Server
- Apple iPhone Root Password and Mobile User Password Apple iPhone root slaptažodį ir mobiliojo Vartotojas Slaptažodis
- PCLoginNow (PC Login Now) Free Download to Reset Windows Admin or User Password PCLoginNow (PC Login Now) Nemokama Parsisiųsti prie naujo "Windows administratoriaus slaptažodį ar vartotojo
- Change and Reset MySQL root Password Kaitos ir naujo MySQL root Password
- Review Gmail Account Recent Login or Access Activity History and Remote Logout Intruder or Hacker Peržiūra Gmail Naujausi Prisijungti arba Access veiklos istoriją ir nuotolinio Išsiregistruoti įsilaužimo arba Hacker
- Gmail Access Methods and Login Link URLs Gmail Access metodai ir prisijunkite Link URL
- Disable and Turn Off Windows XP Login Screen and Show Traditional NT Log On to Windows Box Išjungti ir išjungti "Windows XP" prisijungimo langą ir Rodyti Tradicinė NT prisijungti prie Windows Box
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Gerinti Apache Web Server Security: Naudokite ServerTokens ir ServerSignature Disable antraštė









































