Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 210400

Re: PowerCLI & SSH.Net

$
0
0

Hey Luc,

 

Yep... SSH is enabled. I can connect with Putty.

 

However, the New-SshSession cmdlet in the module in the article isn't working with ESXi 5.x because KeyboardInteractiveAuthenticationMethod isn't the method the cmdlet is using to connect. From what I understand this changed from ESXi 4.1 to ESXi 5.x. The module works with 4.1 but not 5.x.

 

If I connect with the New-SshSession cmdlet I receive an error stating the below.

 

Exception calling "Connect" with "0" argument(s): "No suitable authentication method found to complete authentication."
At line:1 char:19
+ $SshClient.Connect <<<< ()
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

 

If I use the code I posted in the original post and attempt to create an object for the KeyboardInteractiveAuthenticationMethod class I get the below error.

 

Exception calling "Connect" with "0" argument(s): "Value cannot be null.
Parameter name: data"
At line:1 char:19
+ $SshClient.Connect <<<< ()
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException


Viewing all articles
Browse latest Browse all 210400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>