On my BBB board (as test vehicle), the following is true:
root@arm:~# uname -a
Linux arm 5.7.6 #1 SMP Tue Jun 30 16:46:05 CEST 2020 armv7l GNU/Linux
root@arm:~# lshw -short
H/W path Device Class Description
========================================
system TI AM335x BeagleBone Black
/0 bus Motherboard
/0/0 processor cpu
/0/1 processor idle-states
/0/2 memory 491MiB System memory
/1 eth0 network Ethernet interface
root@arm:~# which systemctl
/bin/systemctl
root@arm:~# systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
Active: active (running) since Thu 2020-07-16 12:21:59 UTC; 2h 33min ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 435 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 765 (sshd)
Memory: 2.1M
CGroup: /system.slice/ssh.service
└─765 /usr/sbin/sshd -D
Jul 16 12:00:13 arm systemd[1]: Starting OpenBSD Secure Shell server...
Jul 16 12:21:59 arm sshd[765]: Server listening on 0.0.0.0 port 22.
Jul 16 12:21:59 arm sshd[765]: Server listening on :: port 22.
Jul 16 12:21:59 arm systemd[1]: Started OpenBSD Secure Shell server.
root@arm:~#
Although I am not running YOCTO there, you can see that I have systemd
present, and that my sshd server is running.
You should give us more info using: $ journalctl -u sshd.service -r -n 1
Zoran
_______
On Thu, Jul 16, 2020 at 4:01 PM <[email protected]> wrote:
>
> I am facing an issue with openssh_8.0p1 on zeus...systemd is not able to
> start sshd.service. I am using the following sshd.service file.
>
> [Unit]
> Description=OpenSSH server daemon
> Documentation=man:sshd(8) man:sshd_config(5)
> After=network.target sshdgenkeys.service
> Wants=sshdgenkeys.service
>
> [Service]
> Type=forking
> PIDFile=@localstatedir@/run/sshd.pid
> EnvironmentFile=-@SYSCONFDIR@/default/sshd
> ExecStart=@SBINDIR@/sshd -D $OPTIONS
> ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
> PermissionsStartOnly=true
> ExecStartPre=-/bin/mkdir -p /var/run/sshd
> ExecStartPre=/bin/chmod -R 755 /var/run/sshd
> KillMode=process
> Restart=on-failure
> RestartSec=42s
>
> [Install]
> WantedBy=multi-user.target
>
>
> Has anyone else faced a similar issue.
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#49968): https://lists.yoctoproject.org/g/yocto/message/49968
Mute This Topic: https://lists.yoctoproject.org/mt/75542163/21656
Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-