linux服務器修改ssh默認22端口方法

登陸服務器,打開sshd_config文件vim vim /etc/ssh/sshd_config 找到#Port 22,默認是註釋掉的,先把前面的#號去掉,再插入一行設置成你想要的端口號,注意不要跟現有端口號重複服務器 # The strategy used for options in the default sshd_config shipped with # OpenSSH is to s
相關文章
相關標籤/搜索