Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - thegadgetman

#1
Sorry to bring this old thread back but this redis reset solution/button is not working for me.

I am trying to use this to reset Ntopng back to defaults and I click the 'Reset' button next to 'Apply' and I get a message "Do you want to reset the database?" to which I click 'Yes' but it doesn't seem to work as Ntopng is not affected.

Do I need to do something else?

#2
Thank you for the reply.

So I've generated an ED25519 key pair, loaded public key to the Gitea user and tested it with the SSH connection you suggested below and all of that works.

In opnsense, I have the URL as 'ssh://<ip of Gitea server:port>/<Gitea user>/<repo>.git' with username 'git' and 'Branch' to 'main'.

THIS NOW WORKS! THANK YOU!

Testing with the SSH command confirmed I had configured Gitea properly and therefore the issue was in opnsense config.
I wondered if the issue was the non-standard port but following your instructions for the opnsense config - and using the server IP and not the hostname has got this running.
#3
Thanks for the response.

I'm using ssh-keygen in Windows with "-t rsa" to generate the key pair so not sure of size.
I did also try using ED25519 and the key text was much shorter so not sure if that was generated properly.
Both of these didn't work.

In Gitea, I was following these instructions to add the SSH key to the user - https://www.techaddressed.com/tutorials/add-verify-ssh-keys-gitea/
But I now also see you can add a Deploy Key to the repo so not sure which one I should be using.

When I get the SSH link for the repo it is in the format 'ssh://git@<hostname:ip>/<user>/<repo>.git' which is different to your URL.
I've tried both the Gitea username I created and just git for the opnsense user but neither worked.
The branch defaults to main in Gitea so I'm just using that.

Sorry if I've missed something obvious here but any help would be appreciated.
#4
Hi,

I am trying to setup Git backup to a repo on a local Gitea server but I get the error "authentication failure" when trying to connect - please can someone help me?

It is a clean install of Gitea and a new repo setup just for this purpose.
I have generated an SSH key pair and attached the public key to the Gitea user and private key to the Git private key section in the Git backup of opnsense.
When clicking Setup/Test Git I get the error "authentication failure".

I've done some searching and found this post - https://github.com/opnsense/plugins/issues/3834
Which gives a workaround by allowing an HTTP connection which works for me but is not secure so not a long term solution.
However, it does prove the connection to Gitea and the repo are working properly as it succeeds.

I have tried using the Gitea login details with the SSH key or just the user Git and no password following the opnsense documentation (but I understand this is written for Github) - https://docs.opnsense.org/manual/git-backup.html

Any ideas how I diagnose this further?