Automation

 View Only
  • 1.  NEW-SSHSession cmdlet is not working on vmware 7U2 and higher

    Posted Nov 26, 2021 09:34 AM

    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



  • 2.  RE: NEW-SSHSession cmdlet is not working on vmware 7U2 and higher

    Posted Nov 26, 2021 02:19 PM

    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.




  • 3.  RE: NEW-SSHSession cmdlet is not working on vmware 7U2 and higher

    Posted Nov 26, 2021 02:31 PM

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

    Get-Module -Name Posh-SSH -LIstAvailable


  • 4.  RE: NEW-SSHSession cmdlet is not working on vmware 7U2 and higher

    Posted Nov 27, 2021 08:05 AM

    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