#799978 openssh-server: Starting sshd with option -i from systemd will refuse login with "Bad packet length"

Package:
openssh-server
Source:
openssh
Description:
secure shell (SSH) server, for secure access from remote machines
Submitter:
Jakobus Schürz
Date:
2015-09-24 23:21:05 UTC
Severity:
important
#799978#5
Date:
2015-09-24 23:17:08 UTC
From:
To:
Dear Maintainer,

I tried a little bit around with systemd and socket activation.
So i found a Unit-file on lennard poetterings pideins-blod, where he
uses option "-i" for sshd and socket-activation.

[Unit]
Description=SSH Socket for Per-Connection Servers

[Socket]
ListenStream=22
Accept=yes

[Install]
WantedBy=sockets.target

and

[Unit]
Description=SSH Per-Connection Server

[Service]
ExecStart=-/usr/sbin/sshd -i
StandardInput=socket

this 2 units-files won't work on my debian.

when i try to login, i get this:

$ ssh localhost
jakob@localhost's password:
Bad packet length 1097032549.
Disconnecting: Packet corrupt

If i start sshd with option "-D", login works, without changing anythin
except this option.

greez

jakob