[bernard@fedora ~]$ sudoservicessh status
Redirecting to /bin/systemctl status ssh.service
Unit ssh.service could not be found.
[bernard@fedora ~]$ sudo systemctl enable ssh.service
Failed to enable unit: Unit file ssh.service does not exist.
[bernard@fedora ~]$ ps -e |grepssh
[bernard@fedora ~]$ systemctl enable sshd
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ====
Authentication is required to manage system service or unit files.
Authenticating as: bernard
Password:
==== AUTHENTICATION COMPLETE ====
Created symlink /etc/systemd/system/multi-user.target.wants/sshd.service → /usr/lib/systemd/system/sshd.service.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ====
Authentication is required to reload the systemd state.
Authenticating as: bernard
Password:
==== AUTHENTICATION COMPLETE ====[bernard@fedora ~]$ ps -e |grep sshd # 查看运行进程36373 ? 00:00:00 sshd