Script

Validate/change SSH access to ESXi hosts

This is another script that I’ve posted earlier this year on twitter and pastbin.

 

This script is very basic, it enables you to get the SSH status of a given vCenter or change it. It takes multiple input, meaning you will be able to stop and disable the service on all host with one command – Aswell as start or view the status of the hosts.

 

This should cover most use cases. An example would be to stop and disable the SSH service and then list new state in order to valid it. As it can be seen below in the script description.

Leave a Reply

Your email address will not be published. Required fields are marked *