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

Import git repo for AWX error #15560

Open
7 of 11 tasks
NobeliY opened this issue Sep 30, 2024 · 1 comment
Open
7 of 11 tasks

Import git repo for AWX error #15560

NobeliY opened this issue Sep 30, 2024 · 1 comment
Labels

Comments

@NobeliY
Copy link

NobeliY commented Sep 30, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

ssh: connect to host github.com port 22: Connection timed out

AWX version

22.3.0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

Ubuntu 22.04.2 LTS

Web browser

Firefox

Steps to reproduce

  1. ssh-keygen -t rsa
  2. Import a public key to Github SSH and GPG keys
  3. Create a Credential by private key
  4. Create project from [email protected]:... with source branch

Expected results

Successfully import project

Actual results

ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Additional information

No response

@github-actions github-actions bot added component:awx_collection issues related to the collection for controlling AWX component:ui needs_triage type:bug community labels Sep 30, 2024
@oceanthunder
Copy link

a) Try using HTTPS:

git clone https://github.com/ansible/awx.git

b) If you prefer using SSH, make sure your .gitconfig has the following settings to avoid issues with HTTPS:

[url "[email protected]:"]
    insteadOf = https://github.com/

If you see the reverse (i.e., url is http://github.com and insteadOf is [email protected]), change it to the above.

c) Ensure your SSH key is correctly copied and pasted into the SSH and GPG keys section of your GitHub account. Double-check that the public key matches what you generated with ssh-keygen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants