เปลี่ยน port 22 SSH Linux

VPS-เปลี่ยน port 22 SSH Linux

โดยค่าเริ่มต้น port sssh คือ 22 นะครับ แนะนำให้เปลี่ยน ssh port เป็นตัวเลขอื่นนะครับ

วิธีทำ

แก้ไขไฟล์ /etc/ssh/sshd_config

แก้ #port=22 เป็น port=ตัวเลขที่เราต้องการ เช่น 249 122 433 เป็นต้น (เอา # หน้าออกด้วยนะครับ)

จากนั้นทำการ restart service sshd แบบนี้นะครับ
# service sshd restart

แค่นี้เวลาเข้า ssh ก็ให้ใส่ port ตามที่เราได้แก้ไปนะครับ

 

small_c_popup.png

บริการ Premium VPS และ Cloud Hosting เร็วกว่าด้วยเซิร์ฟเวอร์ในไทย

รับส่วนลด 50%

ท้าให้ลอง VPS ที่ได้รับรีวิวบริการดีเยี่ยมสูงสุดใน Google Review

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful. You can find full details of our Privacy Policy here.