I have installed Gitea on my Asustor NAS: the “server”
I don’t use an external (cloud) service. I simply want to be able to use two “client” computers at home to do my (hobby) coding. Both run Arch Linux. I don’t want/need a signed CA certificate, I don’t have a domain as such, just an IP address:3100 for the server.
I have used ssh-keygen
and added the private key to the ssh-agent
and saved the public key on the Gitea server and verified it.
I have also set up a GPG key and installed and verified it using gitea. I have followed this Github setting up a GPG verification
I use vscode and have installed the VS Code Git extension.
So, my client (local) git communicates with my gitea service over SSL (I assume). I’m a bit confused here as I don’t know what actually happens. For SSH, my NAS advises me to use a port other than 22 for security. I have configured sshd
to use the correct port and it seems to be able to talk to the server because, if I just ssh in, the NAS responds by asking me for a password an it’s talk over the correct port.
I have created an empty repository in gitea. I am not an organisation and thus I don’t have a domain name. The repository looks fine, it shows two urls, one for HTTPS and one for SSH. I’ve tried using both.
I obviously have an account on the NAS and a different username (see below) and password for gitea. So here are three questions:
- Does gitea do the authentication or is it handed-off to the NAS OS?
- What identity should I use in gitea? The SSH version in gitea is “git@192.168.xx.xx:rogerp/Julia.git”, but why “git@…” when there is no “git” user? Shouldn’t it be “rogerp@…”?
- SSH uses SSL. If I use GPG, I guess I can use HTTPS instead of SSH. Is that true?
I have probably got confused with all the options and muddled up my SSH and GPG key generation. It’s the identity/“exact IP address” thing.
Each time I make a change I re-run git init
. I want to push my code to this empty repository. I get the following from git, within vscode
2024-01-16 18:44:11.601 [warning] Failed to get repository realpath for: “/home/roger/Documents/Julia/U3A_SummandOfSquares/https:/192.168.xx.xx:3100/rogerp/Julia.git”. Error: ENOENT: no such file or directory, realpath '/home/roger/Documents/Julia/U3A_SummandOfSquares/https:/192.168.xx.xx:3100/rogerp/Julia.git
Whys is the path name a concatenation of my local filepath and the remote path?
Later in the error log I get:
2024-01-16 19:16:31.962 [info] > git push -u gitea main [50ms]
2024-01-16 19:16:31.962 [info] fatal: unable to access https://192.168.xx.xx:3100/rogerp/Julia.git/: SSL certificate problem: unable to get local issuer certificate
…which is SSL specific, even though I thought I had configured git globally to use GPG.
How would you advise me to configure my set-up? I have lost count of the hours/days I have spent on this! Sorry it’s so long but I am trying to explain everything as carefully as poss.