- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
enable ssh from vSphere Client cli
Is there any way to enable ssh (Start and stop with host) from command line remotely.
ie: snmp - can use vicfg-snmp.pl, how about ssh service ?
GUI way:
vSphere Client > Security Profile > Services section > SSH > Start and stop with host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like this
Get-VMHost -Name $esxName | Get-VMHostService |
where {$_.Key -eq "TSM-SSH"} |
Start-VMHostService -Confirm:$false
For a permanent solution have a look at Alan's post called PowerCLI: Technical Support Mode
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using vmware vsphere cli version 5.5
To check the status of service
esxcli.exe -s esxihost -u root -p password network firewall ruleset list -r
To change enabled state t =true and f= false in the last.
esxcli.exe -s esxihost -u root -p password network firewall ruleset set -r sshServer -e t
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Afaik that only opens the firewall for SSH
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There is a great article written by Williams for starting and stopping the ssh services remotely.
Follow below link for more details.
Regards,
Sachin