Skip to main content
Solved

Report and Reset SSH via Casper

  • February 25, 2015
  • 4 replies
  • 0 views

Forum|alt.badge.img+7

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.

Best answer by qsodji

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.

View original
Did this topic help you find an answer to your question?

4 replies

davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • February 25, 2015

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:

  • SyslogFacility AUTHPRIV
  • AcceptEnv LANG LC_*
  • Subsystem sftp /usr/libexec/sftp-server

Forum|alt.badge.img+7
  • Author
  • Contributor
  • 40 replies
  • Answer
  • February 25, 2015

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.


davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • February 25, 2015

Ah ok, thanks for confirming. I wondered if it was some "magic" I hadn't heard of ;)


Forum|alt.badge.img+7
  • Author
  • Contributor
  • 40 replies
  • February 25, 2015

oh... I see what you did there. Thank you for the vote of confidence!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings