-1

有人知道如何在 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

4

1 回答 1

0

显然 systemd 有一个 sshd.service 单元和一个 sshd.socket 单元,它们旨在相互独占使用。每次外部进程连接到端口 22 时,systemd 都应该自动启动和连接 sshd 守护进程。

于 2014-01-29T21:26:37.177 回答