janatlud
Contributor
Contributor

NEW-SSHSession cmdlet is not working on vmware 7U2 and higher

Hello,

 

I see, that I am not able to log to the ESXi host via cmdlet "NEW-SSHSession" after upgrade to vmware 7 U2 (or wmware 7U3), still working on vmware 7 U1.

Is some reason for this, or is some workaround? I used this sequence:

New-SSHSession -ComputerName $Server -Credential $Credentials -AcceptKey

 

Is not working domain account even root account. And yes, password is correct:

New-SSHSession : An established connection was aborted by the server.
At line:5 char:10
+ New-SSHSession -ComputerName $Server -Credential $Credential ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (Renci.SshNet.SshClient:SshClient) [New-SSHSession], SshConnectionException
+ FullyQualifiedErrorId : SSH.NewSshSession

Thank you

0 Kudos
3 Replies
LucD
Leadership
Leadership

In ESXi 7U2 the SHA1 algorithm was removed from SSH.
See VMware ESXi 7.0 Update 2 Release Notes
That could explain what you are seeing.



Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
LucD
Leadership
Leadership

Which version of the Posh-SSH module are you using?

Get-Module -Name Posh-SSH -LIstAvailable


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

janatlud
Contributor
Contributor

there was version 2.2 in my repository and 2.3.0 in central repository.

I downloaded version 3.0.0 and now it is working

Tags (1)
0 Kudos