Posh-SSH icon indicating copy to clipboard operation
Posh-SSH copied to clipboard

Stuck at "VERBOSE: Using SSH Username and Password authentication for connection."

Open NehuenNatero opened this issue 5 years ago • 8 comments

In connecting to several devices without a problem, but there are 2 that are giving me trouble. This is the command im currently using to connect:

New-SSHSession -Port 22 -ComputerName X.X.X.X -Credential $SSH_Cred -Force -Verbose

But i get stucked at this part until timeout:

VERBOSE: Using SSH Username and Password authentication for connection.

But if a try to connect to the same device, from the same machine using putty, i can do it without a problem. Can somebody help me?

Regards!

NehuenNatero avatar Jan 21 '21 16:01 NehuenNatero

Anything on the host logs?

darkoperator avatar Jan 21 '21 16:01 darkoperator

Anything on the host logs?

Nothing on the device, but the traffic is getting there without issue. I also tried the soluction in this topic https://github.com/darkoperator/Posh-SSH/issues/354 ussing the dll from version 2.2, but the error persists. Any ideas?

NehuenNatero avatar Jan 21 '21 18:01 NehuenNatero

Only thing that could be it may be the way version is reported. It is a known bug in SSH.Net http://ssh.net/ that they will fix in the next release.

darkoperator avatar Jan 21 '21 19:01 darkoperator

Do you have an ETA on when could the release be?

NehuenNatero avatar Jan 21 '21 19:01 NehuenNatero

SSH.Net http://ssh.net/ is not my project so no clue there.

darkoperator avatar Jan 21 '21 19:01 darkoperator

Let me ask you one more question, y tried to use diferente versions of SSH.NET:

image

I could test the 2016 versions without a problem, but the 2020 gave me an error. Is there anyway i could test the newest SSH.NET library, or the module would requiere modification?

Regards!

NehuenNatero avatar Jan 22 '21 12:01 NehuenNatero

The version in powershell gallery is a custom build to address some issues. I have not tried or tested replacing it with other versions

Sent from my iPhone

On Jan 22, 2021, at 8:21 AM, Nehuen Natero [email protected] wrote:

 Let me ask you one more question, y tried to use diferente versions of SSH.NET:

I could test the 2016 versions without a problem, but the 2020 gave me an error. Is there anyway i could test the newest SSH.NET library, or the module would requiere modification?

Regards!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

darkoperator avatar Jan 22 '21 12:01 darkoperator

Please test the alpha release to see if issue is resolved https://github.com/darkoperator/Posh-SSH/releases/tag/3.0.0-Alpha

This is a major release with breaking changes and it is cross platform for the latest version of powershell.

darkoperator avatar Feb 01 '21 10:02 darkoperator