Jul 10 07:17:54 OfficeCentOS sshd[9226]: fatal: Cannot bind any address.
Jul 10 07:17:54 OfficeCentOS systemd[1]: Unit sshd.service entered failed state.
Jul 10 07:17:54 OfficeCentOS systemd[1]: sshd.service failed.
Jul 10 07:17:54 OfficeCentOS polkitd[668]: Unregistered Authentication Agent for unix-process:9219:9497454 (system bus n
Jul 10 07:17:56 OfficeCentOS polkitd[668]: Registered Authentication Agent for unix-process:9228:9497664 (system bus nam
Jul 10 07:17:56 OfficeCentOS systemd[1]: Stopped OpenSSH server daemon.
-- Subject: Unit sshd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sshd.service has finished shutting down.
Jul 10 07:17:56 OfficeCentOS systemd[1]: Starting OpenSSH server daemon...
-- Subject: Unit sshd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sshd.service has begun starting up.
Jul 10 07:17:56 OfficeCentOS sshd[9234]: error: Bind to port 6022 on :: failed: Permission denied.
Jul 10 07:17:56 OfficeCentOS sshd[9234]: error: Bind to port 6022 on 0.0.0.0 failed: Permission denied.
Jul 10 07:17:56 OfficeCentOS sshd[9234]: fatal: Cannot bind any address.
Jul 10 07:17:56 OfficeCentOS systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
Jul 10 07:17:56 OfficeCentOS systemd[1]: Failed to start OpenSSH server daemon.
-- Subject: Unit sshd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sshd.service has failed.
--
-- The result is failed.
Jul 10 07:17:56 OfficeCentOS systemd[1]: Unit sshd.service entered failed state.
Jul 10 07:17:56 OfficeCentOS systemd[1]: sshd.service failed.
Jul 10 07:17:56 OfficeCentOS polkitd[668]: Unregistered Authentication Agent for unix-process:9228:9497664 (system bus n
解决
关闭selinux
vi /etc/selinux/config setenforce 0 systemctl restart sshd.service # 将SELINUX=enforcing改为SELINUX=disabled firewall-cmd --permanent --zone=public --add-port=2019/tcp firewall-cmd --reload