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

feature: Support SSH agent forwarding #56

Closed
wants to merge 1 commit into from

Conversation

shioshiota
Copy link

I implemented a feature to support SSH agent forwarding like Docker Desktop for Mac.
https://docs.docker.com/desktop/mac/networking/#ssh-agent-forwarding

I tested this feature on a machine with Apple M1 Max processor.

shiota@lima-colima:~$ ssh-add -l
Could not open a connection to your authentication agent.
shiota@lima-colima:~$ SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock ssh-add -l
256 SHA256:yz69smEOak6d+q+X8I3pMtNVa/yu6kegZlVT3zRZYt8 [email protected] (ED25519)

@shioshiota shioshiota changed the title Support SSH agent forwarding feature: Support SSH agent forwarding Nov 9, 2021
@abiosoft
Copy link
Owner

Thanks for this, much appreciated.

However, this contribution is more or less obsolete as Lima now has inbuilt support for socket and ssh agent forwarding.

Socket forwarding is already implemented in the imminent v0.3.0 release and the socket.sh file is no longer required.
As for ssh agent forwarding, I will look at putting the feature behind a boolean flag. You can kindly create a separate issue for it.

To have an idea what to expect soon you can check the v0.3.0 milestone.

Thanks once again.

@scr-oath
Copy link

Any chance it supports forwarding the X11 socket too?

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

Successfully merging this pull request may close these issues.

3 participants