View Single Post
Tuổi 27-08-2023, 12:16 PM   #1
admin2
Administrator
 
Gia nhập: Oct 2021
Trả Lời: 22
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
admin2 vắng mặt   Trả lời ngay kèm theo trích dẫn này