Skip to content

Instantly share code, notes, and snippets.

@eduavila
Forked from fabianogoes/ubuntu-acesso-ssh-root.md
Created November 27, 2023 17:45
Show Gist options
  • Save eduavila/ed3a4ecffd1f67c5ae8e57845e3f6388 to your computer and use it in GitHub Desktop.
Save eduavila/ed3a4ecffd1f67c5ae8e57845e3f6388 to your computer and use it in GitHub Desktop.
LIBERANDO O USUÁRIO ROOT PARA ACESSO REMOTO VIA SSH

LIBERANDO O USUÁRIO ROOT PARA ACESSO REMOTO VIA SSH

Configurando uma máquina linux para liberar acesso remoto via ssh para o usuário root.

Instalar openssh-server

apt-get install openssh-server

Configurar senha para o root

sudo passwd root

Edite o seguinte arquivo: /etc/ssh/sshd_config

Modifique a linha:

PermitRootLogin no 

Para:

PermitRootLogin yes

Agora reinicie o serviço de ssh:*

/etc/init.d/ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment