cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
vi /etc/ssh/sshd_config
# If you want to change the port on a SELinux system, you have to tell # SELinux about this change. # semanage port -a -t ssh_port_t -p tcp #PORTNUMBER # Port 2345 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress ::
semanage port -a -t ssh_port_t -p tcp 2345
yum -y install policycoreutils-python
firewall-cmd --permanent --zone=public --add-port=2345/tcp firewall-cmd --reload
systemctl restart sshd.service
ss -tnlp | grep ssh
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add example@example.com to your trusted senders list in your email software.