Ali cloud modify the default port number is set to own 22

     Beginner Linux, the whole system out of the BUG, the command is not familiar with, do not know how changes can only reinstall the system, very fast (point list of instances of more of the disk and mirroring the replacement operating system ).

    Then re-use port number 22 landed on the local software (SecureCrt8.7)

    input the command:

1.vi  /etc/ssh/sshd_config

2. Type I (anywhere, for editing)

3. # Port 22 input of the next line Port port (port number at least five)

4. Click the ESC button (exit edit mode)

5. Input : x carriage (x here is meant to save and exit) 

6. systemctl restart sshd.service    Reset Service

7. Turn off the local software

8. Use the new port for landing

9. The successful landing

Published 163 original articles · won praise 92 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_42995083/article/details/105391692