In Putty, once I type "shell" and access the Bash shell, i can successfully execute "vpxd -v".
It looks to me that the Invoke-SSHCommand command is executing against the appliance shell instead of the Bash shell.
I tried the following code:
__________________________________________________________________
$shellChange = @'
shell
'@
Invoke-SSHCommand -SSHSession $session -Command $shellChange -Verbose
__________________________________________________________________
But the command times out.
_______________________________________________________________________
Exception calling "EndExecute" with "1" argument(s): "Command 'shell' has timed out."
At C:\Program Files\WindowsPowerShell\Modules\Posh-SSH\3.0.0\Posh-SSH.psm1:266 char:25
+ $Output = $_.cmd.EndExecute($_.Async)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SshOperationTimeoutException