All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zoran" <zoran.stojsavljevic@gmail.com>
To: srijan.nandi@gmail.com
Cc: yocto@lists.yoctoproject.org
Subject: Re: [yocto] openssh_8.0p1 on zeus - sshd.service not starting [RESOLVED] #yocto
Date: Sat, 18 Jul 2020 17:37:54 +0200	[thread overview]
Message-ID: <CAGAf8LyO6ZA-FXQ+n5cKRn5XfEnr_UVmur9ncZvT=paCgTpE3Q@mail.gmail.com> (raw)
In-Reply-To: <27359.1595085542367063284@lists.yoctoproject.org>

This is what I have with my BBB on SDcard with Debian Buster:

root@arm:/etc/systemd/system# cat sshd.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

root@arm:/etc/systemd/system# systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
   Active: active (running) since Fri 2020-07-17 17:22:23 UTC; 22h ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 650 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
 Main PID: 691 (sshd)
    Tasks: 1 (limit: 1059)
   Memory: 2.2M
   CGroup: /system.slice/ssh.service
           └─691 /usr/sbin/sshd -D

Jul 17 17:22:22 arm systemd[1]: Starting OpenBSD Secure Shell server...
Jul 17 17:22:23 arm sshd[691]: Server listening on 0.0.0.0 port 22.
Jul 17 17:22:23 arm sshd[691]: Server listening on :: port 22.
Jul 17 17:22:23 arm systemd[1]: Started OpenBSD Secure Shell server.
root@arm:/etc/systemd/system#

Works seamlessly. Just for comparison.

Best Regards,
Zoran
_______

On Sat, Jul 18, 2020 at 5:19 PM <srijan.nandi@gmail.com> wrote:
>
> Helo Zoran,
>
> Type=notify didn't work, either.
>
> The only thing that worked was Type=simple.
>
> Thanks,
> -=Srijan Nandi 

  reply	other threads:[~2020-07-18 15:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-16 14:01 openssh_8.0p1 on zeus - sshd.service not starting #yocto srijan.nandi
2020-07-16 15:00 ` [yocto] " Zoran
2020-07-16 15:53   ` srijan.nandi
2020-07-16 16:47     ` [yocto] " Zoran
2020-07-18 10:53       ` openssh_8.0p1 on zeus - sshd.service not starting [RESOLVED} #yocto srijan.nandi
2020-07-18 13:52         ` [yocto] " Zoran
2020-07-18 15:19           ` openssh_8.0p1 on zeus - sshd.service not starting [RESOLVED] #yocto srijan.nandi
2020-07-18 15:37             ` Zoran [this message]
     [not found]             ` <1622E2E419693155.8854@lists.yoctoproject.org>
2020-07-18 15:42               ` [yocto] " Zoran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGAf8LyO6ZA-FXQ+n5cKRn5XfEnr_UVmur9ncZvT=paCgTpE3Q@mail.gmail.com' \
    --to=zoran.stojsavljevic@gmail.com \
    --cc=srijan.nandi@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.