Re: Using wodSSH with PowerShell? (General questions)
Sean,
Your prompt should be accepted by our regex because # appear at end of your prompt.Do you received some error maybe? Which line produce it?
Drazen
Yep, its pretty standard timeout error I get on the connection. Odd, because PuTTy SSH connects instantly with the exact same details - port 22, my username and password. Does user perhaps need to be set username@host instead of just username?
Here is the error:
PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> $ssh.Connect()
Exception calling Connect with 0 argument(s): The current connection has timed out.
At line:1 char:13
+ $ssh.Connect <<<< ()
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI>
PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> $ssh.DataReady = 0
PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> $ssh.WaitFor( rege
x:[$ #>] $ )
Exception calling WaitFor with 1 argument(s): Cannot receive at this time, not conne
cted.
At line:1 char:13
+ $ssh.WaitFor <<<< ( regex:[$ #>] $ )
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> $ssh.Execute( ls -
al`r`n , regex:[$ #>] $ )
Exception calling Execute with 2 argument(s): Cannot receive at this time, not conne
cted.
At line:1 char:13
+ $ssh.Execute <<<< ( ls -al`r`n , regex:[$ #>] $ )
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> $ssh.Disconnect()
PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI>
Complete thread:
- Using wodSSH with PowerShell? - Sean, 2012-03-13, 19:45
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:45
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 21:48
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:59
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:24
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:26
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:34
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:49
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:55
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 23:01
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 23:47
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 22:32
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 22:46
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 23:29
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 23:58
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-15, 00:03
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 23:58
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 23:29
- Re: Using wodSSH with PowerShell? - wodDamir, 2012-03-14, 22:46
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-14, 22:32
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 23:47
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 23:01
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:55
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:49
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:34
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 22:26
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 22:24
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:59
- Re: Using wodSSH with PowerShell? - Sean, 2012-03-13, 21:48
- Re: Using wodSSH with PowerShell? - woddrazen, 2012-03-13, 21:45