Root user:
1 | vim /etc/ssh/sshd_config |
Find the content:
1 | # Port 22 |
Delete the # and change 22 to the port you need.
Restart the sshd service:
1 | service sshd restart |
Root user:
1 | vim /etc/ssh/sshd_config |
Find the content:
1 | # Port 22 |
Delete the # and change 22 to the port you need.
Restart the sshd service:
1 | service sshd restart |