修改ssh默认端口号

1、修改ssh默认端口号
vim /etc/ssh/sshd_config 默认在第17行修改:Port 2222 修改后,重启sshd:systemctl restart sshd
2、查看系统服务启动情况
安装:apt install sysv-rc-conf
命令:sysv-rc-conf
根据系统运行级别查看对应服务 runlevel

猜你喜欢

转载自www.cnblogs.com/jarno/p/11764315.html