Closed JulianBeran closed 1 year ago
@JulianBeran Thank you for bringing this issue to our attention. We will review it as soon as possible.
Hello @JulianBeran
The problem you're facing has two parts. Firstly, the Python traceback during an ssh error will be fixed in the upcoming release.
Regarding the ssh keyphrase issue, it requires a different solution. The idf.py build
command is non-interactive and cannot prompt for a password. To resolve this limitation for non-interactive programs, it's recommended to use ssh-agent
- a separate program that manages your keys and passphrases.
You can find some instructions for setting up ssh-agent on GitHub docs, but they are focused on git bash for Windows.
I also found a couple of tutorials with a clearer explanation for Windows, but I don't have a Windows machine to test them:
@JulianBeran
The stack trace part of this issue has been resolved in the commit at https://github.com/espressif/idf-component-manager/commit/798908a680205a0d00297ac4fb24bb0b485ebfe8.
I am now closing this issue. If you need any more help, please feel free to reopen the issue.
The Component Manager version
v1.2.1
ESP-IDF Version
v5.0
python Version
3.8.7
Operating System
Windows 10
Browser (for https://components.espressif.com Issues)
Chrome
Description
If you try to add a repo by ssh using ssh key authentication results in an error like this:
if i use git via command line:
git clone git@github.com:user/test-component.git
it will promt for the passphrase and then go on and clone the repository.The configuration of ssh seams to work, but not with component manager.
It looks like the component manger is not using the right authentication method.
In the future I only want to use ssh authentication on my own github, but for that this has to work.
To Reproduce
~/.ssh/config
idf_component.yml
Expected behaviour
Use of the saved ssh key, like using git with git@... syntax via command line and prompting for the ssh key passphrase.
Pulling the component from git, configure as external component in my idf-project and compile.
Additional info
I have checked existing issues and online Documentation