64
20
How can I restart the SSH service via the command line on Mac OSX Mountain Lion please?
Using ps aux | grep 'ssh'
, I was able to deduce that the process is most likely /usr/sbin/sshd
.
From here I searched the sshd documentation for references to 'restart' but found none.
I don't know what my next step should be.
4
What are you actually trying to accomplish? If it's something like reloading the sshd config, you don't need to -- launchd starts a new sshd process on demand when an incoming connection is received, which means that the config is automatically reread for each new connection. OTOH, if you're trying to change the listener settings, those are controlled by launchd not the sshd config at all (see here).
– Gordon Davisson – 2012-09-22T01:47:20.6001This was just one test of debugging a password request from supposedly passwordless ssh using public keys. Turns out the thing I has missed was to turn off StrictMode – James Webster – 2012-09-22T08:10:20.077