gitomatic icon indicating copy to clipboard operation
gitomatic copied to clipboard

Cant run without privkey existing and not working for public github repos

Open madhavajay opened this issue 4 years ago • 2 comments

So I have two issues, firstly on a brand new ubuntu box with a user who has no key running the tool gives me the error:

cannot parse key: open /root/.ssh/id_rsa: no such file or directory

I tried passing in garbage but it says that its not a valid pem.

After generating a key at the expected location and trying to use this on a public git repo it won't work. I tried adding a fake username and password but it just says:

cannot pull from repository: authentication required

Is it possible to allow a no-auth option and just let git try seeing as its already setup to be able to pull public https repos?

madhavajay avatar Jul 08 '21 08:07 madhavajay

So I have two issues, firstly on a brand new ubuntu box with a user who has no key running the tool gives me the error:

cannot parse key: open /root/.ssh/id_rsa: no such file or directory

The key auth is the default. You need to create a key and associate the public key with your profile in the GitHub settings.

I tried adding a fake username and password but it just says:

cannot pull from repository: authentication required

Alternatively you can use the username & password authentication, but obviously that doesn't work with fake credentials.

Is it possible to allow a no-auth option and just let git try seeing as its already setup to be able to pull public https repos?

It's obviously needed to push to the repository, but I'll think about improving the situation for a read-only approach like you describe.

muesli avatar Jul 08 '21 23:07 muesli

Totally understand. I don't need to push only pull so adding a key is a step I don't want to have to do. I think it would be a pretty awesome addition if a public pull only was enabled as I imagine there are a lot of use cases where people simply want to monitor a git repo branch and take action. Currently I have a 1 min cronjob which does the trick.

madhavajay avatar Jul 09 '21 00:07 madhavajay