-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Description
Hi,
I've installed (by downloading .zip) and imported the Posh-ssh 2.2 module on Windows 2012 R2 machine.
I'm unable to establish an ssh session. I tried with different devices and of them throws the same error. The following error appears. I'm able to establish telnet to 22 port. The same code works fine on my PC (Windows 10).
PS D:> New-SSHSession -ComputerName "192.37.127.128" -Credential $creds -ErrorAction Stop -AcceptKey -ConnectionTimeout 10000 -Verbose
VERBOSE: Using SSH Username and Password authentication for connection.
Exception has been thrown by the target of an invocation.
At line:1 char:1
+ New-SSHSession -ComputerName "192.37.127.128" -Credential $creds -Err ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Renci.SshNet.SshClient:SshClient) [New-SSHSession], TargetInvocationException
+ FullyQualifiedErrorId : SSH.NewSshSession
Regards,
Jakub
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels