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

Literate will ask for SSH passphrase multiple times #197

Closed
cjalmeida opened this issue May 20, 2022 · 1 comment
Closed

Literate will ask for SSH passphrase multiple times #197

cjalmeida opened this issue May 20, 2022 · 1 comment

Comments

@cjalmeida
Copy link

Similar issue to #196, Literate.jl will still ask for a passphrase if your SSH key is password protected.

The fix in #194 introduces a regression where it ignores ssh-agent variables. It should use withenv instead of setenv.

The actual fix requires add adding the BatchMode option to GIT_SSH_COMMAND.

@fredrikekre
Copy link
Owner

fredrikekre commented May 21, 2022

It shouldn't ask at all -- what version of git are you using?

The fix in #194 introduces a regression where it ignores ssh-agent variables. It should use withenv instead of setenv.

It is better to use addenv (a7bdb8c).

The actual fix requires add adding the BatchMode option to GIT_SSH_COMMAND.

Yea, maybe this is a better way to supress prompts compared to 75f4e21 (but that patch is still needed for https auth I think)? Edit: 063f654

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