Enable SSH on every ESXi in the Cluster

Well, time to make some changes on ESXi but SSH is disabled. I need to enable SSH manually on every Host ..What a pain!. Again a little voice from within says “No Way ! That’s something from the past…” and I was right, it can be done easily :

Get-Cluster <Cluster_Name> | Get-Vmhost | ForEach-Object {Start-VmHostService -HostService ($_ | Get-VmHostService | Where {$_.key -eq "TSM-SSH"})}

Update: This setting will be reverted after rebooting.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s