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

Request: Add OpenSSH #32

Open
supriyo-biswas opened this issue Apr 16, 2024 · 4 comments
Open

Request: Add OpenSSH #32

supriyo-biswas opened this issue Apr 16, 2024 · 4 comments

Comments

@supriyo-biswas
Copy link

If possible, I would like to have OpenSSH provided as a cosmopolitan binary through this project.

Thanks!

@ahgamut
Copy link
Owner

ahgamut commented Apr 16, 2024

I've tried to do it before. We have some of the necessary dependencies buildable already (OpenSSL), but IIRC the OpenSSH build system is a bit complicated, and I remember it was making some config assumptions that made builds a bit difficult.

If you can provide a build config of OpenSSH that targets linux and uses minimal OS/ASM features, that would be a good starting point to try a port.

@supriyo-biswas
Copy link
Author

supriyo-biswas commented Apr 16, 2024

https://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssh.html mentions a whole load of dependencies, but if you are willing to forego Kerberos/GSSAPI support and limiting yourself to building just the client, this is comparatively easier.

As a point of reference, a separate project of mine, https://github.com/supriyo-biswas/static-builds/blob/master/build-openssh.sh#L5 builds static OpenSSH Linux binaries with the same approach as above.

@ahgamut
Copy link
Owner

ahgamut commented Apr 16, 2024

the build issue with openssh is partially the directories it expects to access at runtime: things like /var/run or /var/empty won't usually be there on Windows, and I'm not sure what the polyfills for those are.

@ahgamut
Copy link
Owner

ahgamut commented Apr 20, 2024

experimental OpenSSH build available here: https://github.com/ahgamut/superconfigure/releases/download/z0.0.38/web.zip

I just got it to build, I am not sure how many features are necessary or how many patches need to be added to make it work as expected.

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

2 participants