文章目录
- 1. 提出问题
- 2. 解决问题
-
- 2.1 关闭selinux
- 2.2 重启ssh服务
- 2.3 关闭禁用防火墙
- 2.4 FinalShell远程连接ied云主机
- 3. 实战小结
1. 提出问题
- 由于端口22被禁用,尝试将云主机的SSH端口更改为222,但更改后SSH服务无法启动,日志显示权限问题。
- 执行命令:
vim /etc/ssh/sshd_config
- 执行命令:
systemctl restart sshd
Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.
- 执行命令:
journalctl -xe
,提示因权限不足无法绑定到222
端口