How to use with a yubikey or a key with a password ? #624
|
Hello, |
Replies: 1 comment
|
lazydocker does not open an ssh connection per request
cmd := exec.CommandContext(ctx, "ssh", "-L", localSocket+":/var/run/docker.sock", host, "-N")
so one touch should be enough fix is to authenticate before lazydocker runs and let it reuse the session then ssh -N -f dockerhost # one PIN + one touch
lazydockerthe keep the PIN cached in an agent as well ( one limit |
lazydocker does not open an ssh connection per request
for an
ssh://docker host it spawns one tunnel and repointsDOCKER_HOSTat a local socketpkg/commands/ssh/ssh.go:152pkg/commands/docker.go:110-116does the same for a docker context whose endpoint isssh://(v0.24.0 and later — before that only theDOCKER_HOSTenv var triggered it)so one touch should be enough
the reason it never starts is that this child
sshgets no stdinGo leaves
cmd.Stdinnil which is the null device so a PIN prompt has nowhere to goafter 8 seconds you get
ssh tunneled socket never became availablepkg/commands/ssh/ss…