Replies: 3 comments 3 replies
-
Is there an SSH agent you could use on Windows? You could store the key's passphrase in there (temporarily of course), maybe that would help. |
Beta Was this translation helpful? Give feedback.
-
Does it fail immediately or after some time? Maybe you can feed your passphrase to the standard input of Copier 😕? |
Beta Was this translation helpful? Give feedback.
-
I've been using ssh agents for so long that I forgot you can actually be writing a password each time to unlock a key for ssh. So probably your user case isn't tested. Git is invoked as a subprocess quite often in copier, but maybe not in an interactive way that allows you to answer its prompts. That would count as a bug in copier. However your experience is always gonna be really better if you use an ssh agent. That makes me wonder if it's worth the time fixing it. 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hello, I have been debugging an ssh-key error when using Copier on Windows (both PowerShell and CMD).
The only way I can get the system to use SSH keys are by having SSH keys without passphrases.
Is this a general issue or have others found a solution for the problem?
And yes, I have checked that the keys where working when used in the CLI with git.
Error Message:
Command line: | 'C:\Program Files\Git\cmd\git.exe' clone --no-checkout ssh://GIT/algo/copier-python-docker.git 'C:\Users$USER\AppData\Local\Temp\copier.vcs.clone.4vzpa4in' --filter=blob:none
Stderr: | Cloning into 'C:\Users$USER\AppData\Local\Temp\copier.vcs.clone.4vzpa4in'...
| [email protected]: Permission denied (publickey).
| fatal: Could not read from remote repository.
|
| Please make sure you have the correct access rights
| and the repository exists.
Beta Was this translation helpful? Give feedback.
All reactions