• Skip to primary navigation
  • Skip to main content

jdgreen.io

The personal blog of James Green

  • Home
  • Technology
    • Announcements
    • Industry
    • Reviews/Guides
    • Tech Field Day
    • Interviews
  • Health
    • Food
    • Biohacking
    • Fitness
  • Faith
  • Book Notes
    • Business Books
    • Faith Books
    • Health Books
    • Technology Books
  • About
  • Show Search
Hide Search

ssh

The VirtAdmin SSH Tool for vSphere Clusters

James Green · Mar 20, 2014 ·

A while back, I added this post with some PowerCLI one-liners to turn on and off SSH across a whole cluster. I got irritated with always having to browse out here and copy the script, so I created a reusable tool with a GUI to do this little task!

The VirtAdmin SSH Tool for vSphere Clusters

The tool uses Powershell to draw Windows forms. I generated the GUI using Sapien Technologies’ PrimalForms CE. The tool did most of the leg work for me. Once the form was generated, I just added the logic and made the buttons do things! Let me explain a few details…

[Read more…] about The VirtAdmin SSH Tool for vSphere Clusters

Disable SSH Warning Across vCenter

James Green · Jan 21, 2014 ·

Run this PowerCLI one-liner to disable that pesky “SSH is enabled” warning on your ESXi hosts. Yes, it’s a security risk, but in my lab (for instance) I don’t want to look at it. Enjoy looking at a clean, happy cluster!

[code language=”powershell”] Get-VMHost | Get-AdvancedSetting UserVars.SuppressShellWarning |
Set-AdvancedSetting -Value 1
[/code]

Turn on/off SSH across all hosts

James Green · Sep 16, 2013 ·

If you’ve ever needed to SSH to each host in your environment to do some work, you know what a pain it can be to click over to the Security Profile tab and enable it for one host at a time. A much faster way to do this would be with a PowerCLI one-liner. Below are the commands to turn SSH on and off across all hosts. Hope it saves you a few clicks!

[code lang=”powershell”]#Start SSH for all hosts in vCenter
Get-VMHost | Foreach {
Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} )
}[/code] [code lang=”powershell”]#Stop SSH for all hosts in vCenter
Get-VMHost | Foreach {
Stop-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} ) -Confirm:$false
}
[/code]

Copyright © 2022 · Monochrome Pro on Genesis Framework · WordPress · Log in

Posting....