errors on getaddrinfo(): nodename nor servname provided, or not known

Peter Stuge peter at stuge.se
Fri Oct 17 12:31:29 EST 2008


Jesse Armand wrote:
> It seems the only way to debug is by not detaching sshd into a
> daemon (-D) option.

What does your plist look like?


Chris Wilson wrote:
> If I remember correctly, launchd is listening on the port and
> handing over the connected socket to sshd, much like inetd.

It can, if it's told to do so. But that will not work for sshd.


Jim Knoble wrote:
> According to Apple, you *must* tell sshd not to detach.

Right, just like with supervise. No big deal, use -D.

> From <http://developer.apple.com/macosx/launchd.html>:

Helpful page!


Jesse, note that there must be no Sockets key in your plist. Maybe
this is all you need:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
	"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.openssh.sshd</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/local/sbin/sshd</string>
		<string>-D</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>


//Peter


More information about the openssh-unix-dev mailing list