Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Linux và các thủ thực nhỏ (http://quantrinet.com/forum/forumdisplay.php?f=430)
-   -   Hướng dẫn mở port SSH CentOS 7 (http://quantrinet.com/forum/showthread.php?t=10358)

admin2 27-08-2023 12:16 PM

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


Bây giờ là 11:09 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.