我是靠谱客的博主 紧张小猫咪,这篇文章主要介绍linux 修改网卡报错xe,centos修改端口出现Failed to start OpenSSH server daemon 启动报错和-xe报错的解决方法...,现在分享给大家,希望可以做个参考。
修改SSH端口:
# vi /etc/ssh/sshd_config
里面找port 22,在前面加上#,去掉注释,然后把22改成你想要的端口。
#port 22
建议去掉注释之前,先增加你需要的端口,比如:12345端口,生效后在删除22端口,以防止修改后,操作错误进不去系统。
Port 22
Port 12345
在防火墙中添加改SSH端口。
然后重启sshd服务 ,命令如下:
查看状态:
systemctl status sshd.service
启动服务:
systemctl start sshd.service
重启服务:
systemctl restart sshd.service
开机自启:
systemctl enable sshd.service
一、如果执行重启命令后提示 -xe 报错:
Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.
然后在执行
# systemctl status sshd.service
得到的反馈:
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/li
最后
以上就是紧张小猫咪最近收集整理的关于linux 修改网卡报错xe,centos修改端口出现Failed to start OpenSSH server daemon 启动报错和-xe报错的解决方法...的全部内容,更多相关linux内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复