2014-01-18 79 views
-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 [email protected],我得到以下信息:在BeagleBone Black上自動啓動OpenSSH sshd

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

+0

「@」是什麼意思?它是符號鏈接嗎? – lindhe

回答

0

顯然systemd同時具有sshd.service單元和sshd.socket單位,即意在彼此獨佔使用。每當外部進程連接到端口22時,sshd守護進程應該由systemd自動啓動和連接。

相關問題