Skip to content

v0.5.0 - exporting to Git repo doesn't find/utilize private key file successfully #69

@fletcherpete72

Description

@fletcherpete72

Using v0.5.0 - Exporting to Git repo doesn't find/utilize private key file successfully. The only way I've found to get it to work is to run an ssh-agent and add the private key to the agent:

`[peter.fletcher@localhost ipctl-binary]$ ipctl export project "Get Audit History Project" --repository git@gitlab.com:iap-projects/get-gateway-audit-history.git
Error: failed to clone the repository: error creating SSH agent: "Error connecting to SSH_AUTH_SOCK: dial unix /tmp/ssh-UnNBLE1ldbjg/agent.103976: connect: no such file or directory"

[peter.fletcher@localhost ipctl-binary]$ ipctl export project "Get Audit History Project" --repository git@gitlab.com:iap-projects/get-gateway-audit-history.git --private-key-file ~/.ssh/id_rsa
Error: failed to clone the repository: error creating SSH agent: "Error connecting to SSH_AUTH_SOCK: dial unix /tmp/ssh-UnNBLE1ldbjg/agent.103976: connect: no such file or directory"

[peter.fletcher@localhost ipctl-binary]$ eval "$(ssh-agent -s)"
Agent pid 104005
[peter.fletcher@localhost ipctl-binary]$ ssh-add ~/.ssh/id_rsa
Identity added: /home/peter.fletcher/.ssh/id_rsa (peter.fletcher@localhost.localdomain)
[peter.fletcher@localhost ipctl-binary]$ ipctl export project "Get Audit History Project" --repository git@gitlab.com:iap-projects/get-gateway-audit-history.git
Successfully exported project Get Audit History Project
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions