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

Paramiko > 3.4.1 cause to SSH session not active #905

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

ebattat
Copy link
Collaborator

@ebattat ebattat commented Sep 27, 2024

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Paramiko 3.4.0 causes the following warning:
/root/benchmark-runner/venv/lib/python3.12/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.

After upgrading to Paramiko 3.4.1/3.5.0, the following error occurs when running a remote shell:
Got SSH session not active

When revert back to paramiko==3.4.0 all working properly.

Currently, I am using filterwarnings to temporarily suppress the warning and adding a TODO to follow up on the Paramiko fix.

For security reasons, all pull requests need to be approved first before running any automated CI

@ebattat ebattat added the bug Something isn't working label Sep 27, 2024
@ebattat ebattat self-assigned this Sep 27, 2024
@ebattat ebattat merged commit fe400df into redhat-performance:main Sep 27, 2024
@RobertKrawitz
Copy link
Member

I suspect that you're using an old ssh key based on an outdated algorithm. You should update the key.

@ebattat
Copy link
Collaborator Author

ebattat commented Sep 27, 2024

@RobertKrawitz,
Our Test env was down for 2 weeks due to this issue.
After revert paramiko from 3.4.1 -> 3.4.0 issue was solved
Installation passed successfully
Do you think we should open an issue in paramiko project regarding it ?

@RobertKrawitz
Copy link
Member

You can try, but I suspect that the issue is that the ssh key you're using relies on an outdated algorithm and that it's behaving as intended. Are you using a fixed ssh key from somewhere?

@ebattat
Copy link
Collaborator Author

ebattat commented Sep 29, 2024

@RobertKrawitz,
Issue was solved when revert back to paramiko 3.4.0

paramiko 3.4.1/3.5.0 issue

Open paramiko issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants