From Newsgroup: comp.sys.mac.system
In article <
_vadnVLzcuJbrY3Z4p2dnA@comcast.com>,
D P Schreber <
schreberdp@rayban.net> wrote:
I rescind those recommendations. Either will work, but it's not a good
idea to modify these files since you never know when a system update
will replace them. Instead, make an entirely new launch daemon and put
it in /Library/LaunchDaemons, which Apple updaters will never touch.
You can disable the standard ssh daemon if you like, or leave it running
for lan use.
I've done this, but it's not working. When I try to connect, the
connection is immediately closed, and Console shows the following log messages:
Apr 21 20:24:03 Barry-Margolins-Computer sshd[9319]: error: Could not
load host key: /etc/ssh_host_key
Apr 21 20:24:03 Barry-Margolins-Computer sshd[9319]: error: Could not
load host key: /etc/ssh_host_rsa_key
Apr 21 20:24:03 Barry-Margolins-Computer sshd[9319]: error: Could not
load host key: /etc/ssh_host_dsa_key
Apr 21 20:24:03 Barry-Margolins-Computer sshd[9319]: Initial audit
status check failed (Operation not permitted)
Apr 21 20:24:03 Barry-Margolins-Computer sshd[9319]: Initial audit
status check failed (Operation not permitted)
Apr 21 20:24:03 Barry-Margolins-Computer sshd[9320]: fatal: No supported
key exchange algorithms
The files that it says it can't load are only readable by root. Could
daemons launched from /Library/LaunchDaemons instead of /System/Library/LaunchDaemons be running as an ordinary user, rather
than root? Does it run them as the user who ran launchctl?
--
Barry Margolin,
barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
--- Synchronet 3.18b-Win32 NewsLink 1.113