I am working on Rock 5B which have Ubuntu 20.04 LTS server OS (Download from radxa official page), I am facing a issue of ssh service, Whenever I reboot the device ssh service is getting failed. Through debugging I manually starting the service and I am able to do ssh.
Please use below mentioned as reference. Kindly help me with this.
root@rock-5b:/home/rock# sudo service ssh status
�● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; disabled; vendor preset: >
Active: inactive (dead)
Docs: man:sshd(8)
man:sshd_config(5)
Below is the contents of service file (ssh.service)
[Unit]
Description=OpenBSD Secure Shell server
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target auditd.service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
[Service]
EnvironmentFile=-/etc/default/ssh
ExecStartPre=/usr/sbin/sshd -t
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/usr/sbin/sshd -t
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=notify
RuntimeDirectory=sshd
RuntimeDirectoryMode=0755
[Install]WantedBy=multi-user.target
Alias=sshd.service