Re: [yocto] openssh_8.0p1 on zeus - sshd.service not starting #yocto

2020-07-16 Thread Zoran
>From the source config file:
> ExecStart=@SBINDIR@/sshd -D $OPTIONS

>From your reply:
> But if I run the /usr/sbin/sshd -f /etc/ssh/sshd_config, it starts fine.

If you run the command: /usr/sbin/sshd -D -f /etc/ssh/sshd_config, I
bet it'll fail again!

So, I have no idea what -D option does mean (lazy to investigate),
seems that this was the main cause of the problem:
https://unix.stackexchange.com/questions/390224/openssh-server-start-failed-with-result-timeout

Please, read this link carefully.

Best Regards,
Zoran
___

On Thu, Jul 16, 2020 at 5:53 PM  wrote:
>
> Hello Zoran,
>
> I started the service and then ran journalctl -u sshd.service -r -n 10
>
> This is what I see:
>
> sshd.service Failed with result 'timeout'
> sshd.service: start operation timed out. Terminating.
>
> But if I run the /usr/sbin/sshd -f /etc/ssh/sshd_config, it starts fine.
>
> Thanks,
> -=Srijan Nandi 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49971): https://lists.yoctoproject.org/g/yocto/message/49971
Mute This Topic: https://lists.yoctoproject.org/mt/75542163/21656
Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [yocto] openssh_8.0p1 on zeus - sshd.service not starting #yocto

2020-07-16 Thread srijan . nandi
Hello Zoran,

I started the service and then ran journalctl -u sshd.service -r -n 10

This is what I see:

sshd.service Failed with result 'timeout'
sshd.service: start operation timed out. Terminating.

But if I run the /usr/sbin/sshd -f /etc/ssh/sshd_config, it starts fine.

Thanks,
-=Srijan Nandi
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49969): https://lists.yoctoproject.org/g/yocto/message/49969
Mute This Topic: https://lists.yoctoproject.org/mt/75542163/21656
Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [yocto] openssh_8.0p1 on zeus - sshd.service not starting #yocto

2020-07-16 Thread Zoran
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
/0busMotherboard
/0/0  processor  cpu
/0/1  processor  idle-states
/0/2  memory 491MiB System memory
/1eth0networkEthernet 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  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: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[yocto] openssh_8.0p1 on zeus - sshd.service not starting #yocto

2020-07-16 Thread srijan . nandi
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 (#49966): https://lists.yoctoproject.org/g/yocto/message/49966
Mute This Topic: https://lists.yoctoproject.org/mt/75542163/21656
Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-