Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-SSHSession : Session operation has timed out on Cisco SF350 #442

Open
SleeperCZ opened this issue Jan 25, 2022 · 20 comments
Open

New-SSHSession : Session operation has timed out on Cisco SF350 #442

SleeperCZ opened this issue Jan 25, 2022 · 20 comments

Comments

@SleeperCZ
Copy link

Hello, I am using Posh-SSH ver. 3.0.0.
I do have an issue "New-SSHSession : Session operation has timed out" when trying to create connection to Cisco SF350, SF550, etc. It uses SSH-2.0-OpenSSH_7.3p1.RL protocol version.
When I am trying to create connection to older models like SF300, that uses SSH-2.0-OpenSSH_5.9p1.RL, it works great!
Cisco updated OpenSSH from 5.9 to 7.3 couse some known vulnerabilities. There is no way to change it back on 5.9.

@darkoperator
Copy link
Owner

darkoperator commented Jan 25, 2022 via email

@SleeperCZ
Copy link
Author

Not at all. Process stops before key exchange. I have tried some calls, and catched them by wireshark.

  1. Calling SF350 with SSH-2.0-OpenSSH_7.3p1.RL on server side. Client waits for key exchange Init from server side and than timeout and close connection
    Cisco_SSH_situation1
    .
  2. Calling SF300 with SSH-2.0-OpenSSH_5.9p1.RL on server side. Client receive key exchange packet from server and continue with secure the connection. All works fine...
    Cisco_SSH_situation2
    .
  3. Calling SF350 with SSH-2.0-OpenSSH_7.3p1.RL on server side. Client starts key exchange itself and server answer. All work fine than
    Cisco_SSH_situation3
    .

@SleeperCZ
Copy link
Author

Hello,
is there any progress? Can I assist somehow? Maybe to capture more communication? Or try some another scenario? whatever.... :)

@darkoperator
Copy link
Owner

darkoperator commented Feb 14, 2022 via email

@darkoperator
Copy link
Owner

darkoperator commented Feb 21, 2022 via email

@SleeperCZ
Copy link
Author

SleeperCZ commented Feb 22, 2022 via email

@darkoperator
Copy link
Owner

darkoperator commented Feb 22, 2022 via email

@SleeperCZ
Copy link
Author

SleeperCZ commented Feb 22, 2022 via email

@darkoperator
Copy link
Owner

darkoperator commented Feb 22, 2022 via email

@SleeperCZ
Copy link
Author

I have tried to build new version of ssh.net with likeMyCoffee modification. It realy changes the order of client and server identification as expected. method connect() of class Session passing throught the client/server identification, than register message lisseners and stuck at line 624 of Session.cs WaitOnHandle(_keyExchangeCompletedWaitHandle); till is not timed out. The point is, that the server side just do not send keyexchangeinit. It waits init message from server and there is no way to force method Connect() to send keyexchangeInit. It is not implemented there and its definitely out of my skills to make it.

@darkoperator
Copy link
Owner

darkoperator commented Mar 24, 2022 via email

@SleeperCZ
Copy link
Author

SleeperCZ commented Mar 29, 2022 via email

@asmith3006
Copy link

I think I'm having the same issue on CSB350 switches. Did you make any progress with this?

@darkoperator
Copy link
Owner

darkoperator commented Sep 28, 2022 via email

@darkoperator
Copy link
Owner

can you test with version 3.0.7?

@MisterRat
Copy link

It is still a problem with 3.0.8

can you test with version 3.0.7?

@darkoperator
Copy link
Owner

darkoperator commented Dec 2, 2022 via email

@darkoperator
Copy link
Owner

Version 3.1.2 includes the latest version of SSH.NET, which should address this.

@SleeperCZ
Copy link
Author

SleeperCZ commented Jan 3, 2024 via email

@SleeperCZ
Copy link
Author

SleeperCZ commented Jan 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants