ssh 修改端口号 --centos 7

1 vim /etc/ssh/sshd_config Port XXXXX #XXXXX 为要修改的端口号,默认是22,直接在新的行添加Port XXXXX即可。 2 systemctl restart sshd 常见问题,修改后重启失败 1 执行提示 journalctl -xe SELinux
posted @ 2022-05-16 15:32  老街巷口熟睡的猫  阅读(213)  评论(0编辑  收藏  举报