Ssh

OpenSuse 13.2 中的 sshd 在哪裡?

  • January 29, 2015

安裝 OpenSuse 13.2 後,我發現即使與盒子的 ssh 連接成功,我也無法像以前那樣找到正在執行的服務(使用chkconfig命令)

為什麼?

我上次熟悉的 Suse 版本是 11.4

舊的 init 系統已被 SystemD 取代,systemctl作為該系統的主界面。

嘗試

systemctl list-units sshd.service

(實際使用 using 找到的服務systemctl list-units | grep ssh,不需要root)

Archemar@tatouin:~/> systemctl list-units sshd.service
UNIT         LOAD   ACTIVE SUB     DESCRIPTION
sshd.service loaded active running OpenSSH Daemon

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

引用自:https://serverfault.com/questions/662346