Jump to content

Alguém sabe como fazer para alterar a porta do Centos 7


Recommended Posts

1 hora atrás, diegoalvesoliveira disse:

Pessoal alguém aí sabe como é fazer a alteração da porta do Centos 7 eu procurei tutoriais na internet porém não está salvando a porta que eu quero se alguém puder me ajudar será bem vindo obrigado!!!

porta do que? SSH? 

Chamou? Estamos ai!

Link to comment
Share on other sites

Bom dia!

Segue os passos.

Nesse primeiro comando, altere a porta 22 para a qual deseja.

nano /etc/ssh/sshd_config

Em seguida:

yum install policycoreutils-python -y
semanage port -a -t ssh_port_t -p tcp 2587
firewall-cmd --permanent --zone=public --add-port=PORTA-NOVA-AQUI/tcp
firewall-cmd --permanent --zone=public --add-port=PORTA-NOVA-AQUI/udp

E por fim:

sudo systemctl restart firewalld

Ou

service systemctl restart firewalld

 

Deixe a nós saber se obteve êxito.

DELTA SERVERS
SOLUÇÕES CORPORATIVAS!

Link to comment
Share on other sites

3 horas atrás, DELTA SERVERS disse:

Bom dia!

Segue os passos.

Nesse primeiro comando, altere a porta 22 para a qual deseja.


nano /etc/ssh/sshd_config

Em seguida:


yum install policycoreutils-python -y

semanage port -a -t ssh_port_t -p tcp 2587

firewall-cmd --permanent --zone=public --add-port=PORTA-NOVA-AQUI/tcp

firewall-cmd --permanent --zone=public --add-port=PORTA-NOVA-AQUI/udp

E por fim:


sudo systemctl restart firewalld

Ou


service systemctl restart firewalld

 

Deixe a nós saber se obteve êxito.

Boa tarde!!!

yum install policycoreutils-python -y

Command not found.

 

Link to comment
Share on other sites

4 minutos atrás, diegoalvesoliveira disse:

Boa tarde!!!


yum install policycoreutils-python -y

Command not found.

 

O senhor tem certeza que sua máquina é a CentOS 7? Poderia posta alguma imagem aqui?

Qual resultado para esse comando:

cat /etc/redhat-release

 

DELTA SERVERS
SOLUÇÕES CORPORATIVAS!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?