Hướng dẫn mở port SSH CentOS 7
Hướng dẫn mở port SSH CentOS 7
Các lệnh sau là bạn vừa thay đổi port ssh vào mở port Firewall:
echo "Port 38791" >> /etc/ssh/sshd_config
systemctl restart sshd
firewall-cmd --zone=public --add-port=38791/tcp --permanent
firewall-cmd --reload
hoặc trên plesk
firewall-cmd --zone=plesk --add-port=38791/tcp --permanent
firewall-cmd --reload
Chúc bạn thành công
|