有人知道如何在 BeagleBone Black 上自动启动 sshd 吗?我已经用 OpenSSH 替换了 dropbear。该标准systemctl enable sshd
不起作用,但奇怪systemctl start sshd
的是。我对使用 systemd 替换 init 的系统很陌生,所以希望我不会错过一些微不足道/简单的东西。有问题的 BeagleBone Black 正在运行 Angstrom Linux 并使用opkg
包管理器。OpenSSH 与opkg install openssh
. 当我运行时systemctl enable sshd@.service
,我收到以下消息:
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
我安装的版本是OpenSSH_6.0p1, OpenSSL 1.0.1e 11 Feb 2013