GitHub user dosubot[bot] added a comment to the discussion: Gitextractor not using ssh key for ssh url and instead using github key
<!-- Answer --> The issue you're encountering seems to be related to the configuration of the `gitextractor` plugin, specifically regarding the use of SSH keys for authentication. The error message indicates that the SSH key file is not accessible, which suggests that the plugin might not be correctly configured to use the SSH key. Here are a few things to check and consider: 1. **SSH Key Configuration**: Ensure that the `privateKey` option is included in your plugin configuration. This option should contain the base64 encoded PEM file of your SSH private key. Without this, the plugin might default to using GitHub tokens for authentication. 2. **Passphrase**: If your SSH key is protected by a passphrase, make sure to include the `passphrase` option in the configuration. This allows the plugin to handle the decryption of the private key. 3. **SSH Key Accessibility**: The error message "Identity file not accessible" suggests that the SSH key file might not be correctly set up or accessible. Verify that the SSH key is correctly added to the SSH agent and that the path to the key is correct. 4. **Environment Setup**: Ensure that the environment where the plugin is running has access to the SSH agent and that the agent is running with the correct keys loaded. Here's an example of how your configuration might look with the SSH key options: ```json { "plugin": "gitextractor", "subtasks": null, "options": { "connectionId": 1, "fullName": "<my-org>/carousel", "name": "carousel", "pluginName": "github", "proxy": "", "repoId": "github:GithubRepo:1:671243190", "url": "ssh://g...@github.com/<my-org>/carousel.git", "privateKey": "your_base64_encoded_PEM_file", "passphrase": "your_passphrase_if_any" } } ``` By ensuring these configurations are correctly set, the `gitextractor` plugin should use the SSH key for authentication instead of GitHub tokens <sup>[[1]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.15/Plugins/gitextractor.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/0613e26a-19f2-4618-b3f8-72b499cbdc6c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/0613e26a-19f2-4618-b3f8-72b499cbdc6c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/0613e26a-19f2-4618-b3f8-72b499cbdc6c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/0613e26a-19f2-4618-b3f8-72b499cbdc6c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0613e26a-19f2-4618-b3f8-72b499cbdc6c?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/0613e26a-19f2-4618-b3f8-72b499cbdc6c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0613e26a-19f2-4618-b3f8-72b499cbdc6c?feedback_type=other)</sup> GitHub link: https://github.com/apache/incubator-devlake/discussions/8412#discussioncomment-12977002 ---- This is an automatically sent email for dev@devlake.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@devlake.apache.org