Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 07-03-2020, 02:42 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Hướng dẫn thay đổi port SSH CentOS 7
Hướng dẫn thay đổi port SSH CentOS 7


1. Bạn gõ lệnh này để cho phép port bạn cần thay đổi ssh

yum install policycoreutils-python
semanage port -a -t ssh_port_t -p tcp 3456

2. Bạn vào
/etc/ssh/sshd_config

thay đổi port ssh như port tương ứng ở trên

3. Mở Firewall

firewall-cmd --add-port=3456/tcp --permanent firewall-cmd --reload

Reboot lại để kiểm tra

Chúc bạn thành công
  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 09:34 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 - 2024, Jelsoft Enterprises Ltd.