在BeagleBone Black上自动启动OpenSSH sshd

时间:2014-01-18 22:47:07

标签: openssh beagleboneblack angstrom-linux systemd

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

1 个答案:

答案 0 :(得分:0)

显然,systemd同时具有sshd.service单元和sshd.socket单元,它们旨在相互独立使用。每当外部进程连接到端口22时,sshd守护程序应由systemd自动启动和连接。