[systemd-devel] A problem with sshd socket from converting inetd Services

Mantas M. grawity at gmail.com
Thu Feb 9 12:48:07 PST 2012


On 2012-02-09 18:53, Badiu Mircea Gabriel wrote:
> Hello,
> 
> I followed the steps from here
> http://0pointer.de/blog/projects/inetd.html to set-up ssh server to
> start when an it detect an incoming connection from remote host vis 22 port.
> 
> [...]
>
> [  108.305615] <87>sshd[373]: debug1: inetd sockets after dupping: 3, 4
> [  108.381723] <86>sshd[373]: Connection from UNKNOWN port 65535
> [  108.450502] <30>sshd[373]: SSH-2.0-OpenSSH_5.6

If you're using an older systemd version (before v36, I think), you
might also need "StandardOutput=socket" in sshd at .service, otherwise it
defaults to "syslog":

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

(Most Linux distributions already ship unit files for the most common
services, you should use those if possible.)

-- 
Mantas Mikulėnas


More information about the systemd-devel mailing list