登陆宝塔面版想备份一下网站,没想到弹出了这个
没办法,先修改端口号试试吧,第一次遇见
记录下修改端口号的方法
vim /etc/ssh/sshd_config
找到
# If you want to change the port on a SELinux system, you have to tell
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
#port 22
#ListenAddress 0.0.0.0
#ListenAddress ::
把#port 22解除注释,下面新添加一个port 1025-65535的数字
尽量先试一下新添加的端口号是否能行,在把22号端口注释掉
最后重启一下ssh服务就可以了
systemctl restart sshd.service
评论前必须登录!
注册