1

I have changed some stuff within the sshd_config file and want to reset the file to its default settings. How would I go about doing this?

2

The ssh default config file is on /private/etc/ssh/sshd_config, you can copy it to .ssh directory by the following command

sudo cp /private/etc/ssh/sshd_config ~/.ssh/config

Then restart SSHD:

sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd
0

If it is for MAC i found this it may be useful

https://gist.github.com/n8felton/91e71a7c64f9f05ed6a5467f9164bb7e

  • Thank you. You are a life saver. I have been looking everywhere, well almost everywhere, lol – StrangeRanger Sep 21 '17 at 0:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.