How Can We Help?
Use Posh-SSH instead of PuTTY
During the pre-Posh-SSH module times we often used the PuTTY Suite to run commands on our ESXi nodes.
With the arrival of the Posh-SSH module, there is no more need to use any of the PuTTY EXE.
Running a command on an ESXi node, provided SSH is running, is now as simple as:
1 2 3 4 5 |
$session = New-SSHSession -ComputerName $esx.Name -Credential $cred –AcceptKey $result = Invoke-SSHCommand -SSHSession $session -Command $cmdSub Remove-SSHSession -SSHSession $session | Out-Null |
vinoop
I found this very late.. I was using plink and pscp for lot of scripts..
Abraham Yunes
This is pretty sweet, I didnt know this was a thing. I can finally get rid of this hacky plink calls.