How to change the SSH port information ?

The use of information port SSH default to connect remotely to the server rather sensitive. Điều này có thể mang đến cho bạn một số nguy cơ về an ninh như việc hacker có thể sử dụng port mặc định để tiến hành dò mật khẩu của bạn, use of SSH bug may have server to conduct attacks escalating takeover server utilization. So in this article I will guide you change the default port information SSH to minimize the risk on.

Đầu tiên, you need to log in to your server. Typing nano /etc/ssh/sshd_config





Next, you locate the line #Port 22


Skip characters # Previous line #Port 22 and instead of 22 the number you desire (note: maximum 65536)



Save the file and type the command service sshd restart



From now you can use SSH through new port. Good luck !

VN:F [1.9.22_1171]
Rating: 4.0/5 (4 votes cast)

How to change the SSH port information ?, 4.0 out of 5 based on 4 ratings