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
相关文章
相关标签/搜索