Posted on 02-25-2015 02:30 AM
Wanted to share a few scripts that allow me to find the status of ssh on my clients but also reset those that for some reason have ssh turned off.
https://jumpt.wordpress.com/2015/02/25/report-and-reset-ssh-status-via-casper/
As always feedbacks are welcome.
Solved! Go to Solution.
Posted on 02-25-2015 05:01 AM
They are the defaults enabled keys/values in sshd_config file. I wanted to leave it as simple as found, though I have also tested it with an empty sshd_config file and it works.
Posted on 02-25-2015 04:52 AM
Just had a read through. Good work!
I've used ```
nc -z localhost 22
``` in the past to check for connectivity.
I haven't enabled it this way before. Just curious what these lines in ssh_config are for:
Posted on 02-25-2015 05:01 AM
They are the defaults enabled keys/values in sshd_config file. I wanted to leave it as simple as found, though I have also tested it with an empty sshd_config file and it works.
Posted on 02-25-2015 05:59 AM
Ah ok, thanks for confirming. I wondered if it was some "magic" I hadn't heard of ;)
Posted on 02-25-2015 06:04 AM
oh... I see what you did there. Thank you for the vote of confidence!