As promised, simple way to enable/disable SSH on the fly!
Start:
Get-VMHost | Foreach {Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} )}
Stop:
Get-VMHost | Foreach {Stop-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} )}
Could not be easier right? I’m getting all hosts in a vcenter server, but you can play around with it, say get-cluster xxx | get-vmhost would only do cluster xxx. You get the idea 🙂