Disable Direct Root Login and User Access via SSH to Server Desativar login e direta raiz usuário o acesso via SSH ao servidor
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. Toda a gente sabe, incluindo os hackers e invasores que todos os sabores sistemas UNIX e Linux vem com um conjunto poderoso raiz conta de utilizador, uma vez que se comprometida, quer dizer todas as pausas inferno solta. So it’sa 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). Portanto, é uma boa prática de segurança para desativar a capacidade de raiz usuário a possibilidade de login e ter acesso ao sistema via SSH servidor diretamente (como é óbvio, o sistema deve ter desativado acesso FTP). After disabling direct root SSH remote login, the chance for the brute force hacking to success is greatly reduced. Após a desativação direta raiz SSH login remoto, a chance para a força bruta "hacking" para o sucesso é muito reduzida.
To turn off and disable direct root SSH login, follow this simple tutorial: Para desligar e desabilitar direta raiz SSH login, siga este tutorial simples:
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: Tenha certeza que você tem uma outra conta (de preferência pertence ao grupo wheel usuário também) que é capaz de login remotamente via SSH, e capaz de SU a raiz conta de usuário. Else you risk been locked out from your server. Senão você risco sido trancada para fora de seu servidor.
- SSH into server and login as root. SSH em servidor e login como root.
- In command shell, use pico or vi to edit sshd_config file by typing one of the following commands: No comando shell, uso pico ou vi para editar sshd_config arquivo, digitando um dos seguintes comandos:
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: Role arquivo de configuração do servidor SSH e localizar uma linha como a seguir:
#PermitRootLogin yes # PermitRootLogin yes
- Uncomment the line by removing the hash symbol (#), and then change the “yes” to “no”. Descomentando a linha com a remoção do símbolo cerquilha (#) e, em seguida, mudar o "sim" ao "não". The final line should look like below: A última linha deve ser semelhante a seguir:
PermitRootLogin no PermitRootLogin não
- Save the config file. Salve o arquivo de configuração. In pico, press Ctrl-o, follow by Ctrl-x. No Pico, pressione Ctrl-o, siga pela Ctrl-x. In vi, type :wq and press Enter. Em vi, tipo: QE e pressione Enter.
- Restart SSH server by typing the following command in command line, and press Enter: Reinicie o servidor SSH digitando o seguinte comando na linha de comando, e pressione Enter:
/etc/rc.d/init.d/sshd restart / etc / rc.d / init.d / sshd restart
- Logout from SSH connection. Terminar sessão SSH a partir de conexão. Try to login as root, it should fail with Access denied error. Tente efetuar o login como root, deverá falhar com Acesso negado erro. To access root account, login with your own user name and password, and then SU to root. Para acessar a conta root, login com o seu próprio nome de usuário e senha, e, em seguida, SU a raiz.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos relacionados
- How to Get Linux Server Sends Email Alert on Root Login Como obter o Linux servidor envia e-mail alerta sobre raiz login
- Disable and Turn Off Telnet in Linux Desativar e desligar o telnet no Linux
- Cannot FTP to Web Host or Server running cPanel/WHM Não é possível a Web Host ou FTP Server executando cPanel / WHM
- cPanel Invalid License File After Changing Hostname Error cPanel Licença inválida após mudar arquivo host erro
- Restore Full Backup or cpmove File in cPanel Web Host Restaurar backup completo ou cpmove Arquivo em cPanel Web Host
- Using phpMyAdmin for Effective MySQL Management in Windows XP Usando phpMyAdmin para a Gestão Eficaz MySQL no Windows XP
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 Instalando Web Server no FreeBSD 6,0 a 2,2 Apache, MySQL e 5,0 PHP 5 - Parte 3
- Change and Reset MySQL root Password Mudança e Reset MySQL raiz Senha
- How to Check if Telnet Is Running on a Server Como verificar se está rodando em um Telnet Server
- Check and Optimize MySQL Database Automatically with Crontab/Cron Verificar e otimizar automaticamente com o banco de dados MySQL crontab / cron









