Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

PowerCLI & SSH.Net

$
0
0

I was curious if anyone has been able to get SSH.NET to work with powershell and ESXi 5.x? ESXi 5.x appears to require the KeyboardInteractiveConnectionInfo class to connect. However, I'm not familiar enough with .Net to figure out how to make this change when creating the ssh.net object in powershell.

 

http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library

 

$user = ""

$host = ""

$KeyboardInteractive = New-Object Renci.SshNet.KeyboardInteractiveAuthenticationMethod($user)

$ConnectionInfo = New-Object Renci.SshNet.ConnectionInfo($host,22,$user,$KeyboardInteractive)

$SSH = New-Object Renci.SshNet.SshClient($ConnectionInfo)

$SSH.Connect()


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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