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

No 'ssh' command found. Using default ssh settings. #206

Open
avishai987 opened this issue Dec 4, 2022 · 2 comments
Open

No 'ssh' command found. Using default ssh settings. #206

avishai987 opened this issue Dec 4, 2022 · 2 comments

Comments

@avishai987
Copy link

avishai987 commented Dec 4, 2022

Hi, why I am getting this error? full error:

> git_sitrep()
Git config (global)
• Name: 'avishai987'
• Email: '[email protected]'
• Global (user-level) gitignore file: <unset>
• Vaccinated: FALSE
ℹ See `?git_vaccinate` to learn more
ℹ Defaulting to 'https' Git protocol
• Default Git protocol: 'https'
• Default initial branch name: <unset>
GitHub
• Default GitHub host: 'https://github.com'
• Personal access token for 'https://github.com': '<discovered>'
• GitHub user: 'avishai987'
• Token scopes: 'admin:org, admin:public_key, admin:repo_hook, delete:packages, gist, notifications, project, repo, user, workflow, write:packages'
• Email(s): '[email protected] (primary)', '[email protected]'
✖ Local Git user's email ('[email protected]') doesn't appear to be registered with GitHub.
Git repo for current project
• Active usethis project: '/sci/labs/yotamd/lab_share/avishai.wizel/R_projects/HMSC'
No 'ssh' command found. Using default ssh settings.
Error in ssh_key_info(host = host, auto_keygen = FALSE) : 
  Failed to find ssh key file for github.com:avishai987
✖ The 'origin' remote is configured, but we can't determine its default branch.
  Possible reasons:
  - The remote repo no longer exists, suggesting the local remote should
    be deleted.
  - We are offline or that specific Git server is down.
  - You don't have the necessary permission or something is wrong with
    your credentials.
• Default branch: 'main'
• Current local branch -> remote tracking branch:
  'main' -> '<unset>'
GitHub remote configuration
• Type = 'ours'
• Host = 'https://github.com'
• Config supports a pull request = TRUE
• origin = 'avishai987/HMSC' (can push)
• upstream = <not configured>
• Desc = 'origin' is both the source and primary repo.
  
  Read more about the GitHub remote configurations that usethis supports at:
  'https://happygitwithr.com/common-remote-setups.html'

Thanks!

@jennybc
Copy link
Owner

jennybc commented Dec 5, 2022

It's presumably coming from gert::git_find().

@jennybc
Copy link
Owner

jennybc commented Dec 5, 2022

If I have to guess, I'd say you have a git repo that has a remote setup with a SSH URL, but then something about your system's SSH setup is deficient or incomplete?

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

No branches or pull requests

2 participants