-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Description
Windows Version: Windows Server 2019 Standard
PowerShell Version: 5.1.17763.2867
Problem: New-SSHSession connection to Cisco appliance fails with the following error:
Exception has been thrown by the target of an invocation...... +CategoryInfo : InvalidOperation: (Renci.SshNet.SshClient:SshClient) [New-SSHSession], TarrgetInvocationException + FullyQualifiedErrorId : SSH.NewSshSession
Details:
- I am attempting to run the New-SSHSession commands from the enviornment's domain controller (which also serves as one of the DNS servers to the targeted appliance).
- The source and target servers are both on the same network and i have confirmed no firewall blockage
- The New-SSHSession does work from other windows servers residing on the same network
- Elliptic Curve Diffie-Hellman key exchange is used in the key exchange
* On the failed attempt from the domain controller I confirmed (via wireshark): I see that the target-server initiated "Key Exchange Init" does take place. Following that, the server does not send a "Client: Elliptic Curve Diffie-Hellman Key Exchange Init". On other windows 2019 servers, where i am able to succesfully establish the New-SSHSession, wireshark shows that the sending server does send a "Client: Elliptic Curve Diffie-Hellman Key Exchange Init"
Troubleshooting:
- Established the New-SSHSession from another windows server to the same target Cisco VOS appliance (it worked)
- Compared Wireshark output from failed session to wireshark output from successful session: Found details listed above (client never sends key back to target server). NOTE: The command worked from the following TWO computers/servers: Windows 10 with powershell version 5.1.18362.1171 and Windows 2019 with powershell version 5.1.17763.2803
- I have tried various combinations of running -AcceptKey -force -port 22 from powershell. None fixes the problem
- i did run this command from powershell, which was suggested in a similar thread(older version of posh-ssh): Get-SSHTrustedHost | Remove-SSHTrustedHost <--this didnt fix the problem
Metadata
Metadata
Assignees
Labels
No labels