Replies: 2 comments
-
workaround: ssh -R |
Beta Was this translation helpful? Give feedback.
0 replies
-
Lima already supports SSH agent forwarding, but it is disabled by default for security reasons. In ssh:
forwardAgent: true and |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi,
while I'm loving lima so far, here's a usecase that I haven't gotten to work yet:
I have an SSH agent (https://github.com/maxgoedjen/secretive) running which has a unix domain socket in
~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh
.F.ex., I can do this in a regular shell (not docker):
Also, this works from my host:
# python3 -c 'import socket; sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM); sock.connect("socket.ssh")' (no output)
Now, I want to use that socket from within my docker containers to securely pull git repositories.
However, when I try to use the socket from inside the lima VM:
SSH seems to ignore the socket. If I try it manually from within
limactl shell
, I see why:I'm guessing this is because we are using sshfs, which does not seem to properly support Unix domain sockets? (Only found libfuse/sshfs#236)
Is there some recommended route I should go to use SSH within lima?
Beta Was this translation helpful? Give feedback.
All reactions