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

[Bug]: Ensure OpenSSH 8.3 or higher is installed #1214

Closed
peterschmidt85 opened this issue May 13, 2024 · 3 comments
Closed

[Bug]: Ensure OpenSSH 8.3 or higher is installed #1214

peterschmidt85 opened this issue May 13, 2024 · 3 comments
Labels
bug Something isn't working troubleshooting

Comments

@peterschmidt85
Copy link
Contributor

Steps to reproduce

  1. Setup dstack server on a machine with OpenSSH older than 8.3.
  2. Create a gateway

Actual behaviour

The server fails to connect to the gateway to set it up.
If the server is restarted, the server hangs while connecting to the gateway.

Expected behaviour

When dstack server is being started, if OpenSSH is older than 8.3, show a warning that
OpenSSH 8.3+ is required.

dstack version

Any

Server logs

No response

Additional information

This happens because dstack relies on ssh's -f option which doesn't work properly with OpenSSH older than 8.3.

From OpenSSH's release notes:

ssh(1): close stdin/out/error when forking after authentication
completes ("ssh -f ...") bz#3137

@peterschmidt85 peterschmidt85 added bug Something isn't working troubleshooting labels May 13, 2024
@r4victor
Copy link
Collaborator

I believe the fix was introduced in OpenSSH 8.4 (https://www.openssh.com/txt/release-8.4), so we should check for OpenSSH >= 8.4

@loghijiaha
Copy link
Contributor

Hey @peterschmidt85, I would like to give a hand to fix this bug, May I?

@peterschmidt85
Copy link
Contributor Author

@loghijiaha That would be amazing! Ping me if you need help or have any questions!

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

No branches or pull requests

3 participants