Is it possible to run a bash command from the PowerCLI rather than enabling the ESXi's SSH and using an application such as PuTTy?
I need to run a command similar to "sed -i 's/current/new/g' /etc/ssh/sshd_config" but I cannot enable SSH on each of the ESXi servers unless it is absolutely necessary.
Thanks for any responses
I'm afraid not.
Note that you don't need to use putty anymore if you use the Posh-SSH module.
See Use Posh-SSH instead of PuTTY
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
@joshuaOMNI
Moderator: Moved to PowerCLI Discussions
I'm afraid not.
Note that you don't need to use putty anymore if you use the Posh-SSH module.
See Use Posh-SSH instead of PuTTY
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you for letting me know, I will look into Posh-SSH module because it may be helpfully for other things as well.