+55 11 3537-9795 contato@selecthost.com.br

Alterar porta ssh no Centos 7

Select host – Cloud Server Brasil CENTOS, CLOUD, LINUX, VPS Alterar porta ssh no Centos 7
Alterar porta ssh no Centos 7

CENTOS CLOUD LINUX VPS

Alterar porta ssh no Centos 7

Posted By SELECT HOST

1º Instalar o firewall
yum install firewalld

2º iniciar o serviço
systemctl start firewalld

3º Modifique a porta padrão para porta de sua escolha, vou usar a porta 1616
vim /etc/ssh/sshd_config

4º Libere porta no iptables
firewall-cmd –permanent –zone=public –add-port=1616/tcp

5º Carregue o arquivo modificado
firewall-cmd –reload
systemctl restart sshd

6º Faça o teste antes de fechar o terminal!
Abra outro terminal e tente fazer a conexão, se não conseguir alguma coisa deu errado, repita os procedimentos acima novamente, se conseguiu basta fechar o terminar o terminal e acessar através da porta nova.

Tagged , , , , , , , , ,

Proudly powered by WordPress Theme: Mediaphase Lite by ThemeFurnace.