Skip to content

InvalidOperation: (Renci.SshNet.SshClient:SshClient) #322

@jbielasz

Description

@jbielasz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions