I have a Debian 10 server. The etckeeper software is installed, so after executing
etckeeper init && etckeeper commmit "Initial commit"
the /etc in now a git repo.
I need to clone ssh://firstname.lastname@example.org/etc/ to my local computer, but I get the following error:
fatal: '/etc/' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
It is likely a permission problem, so cloning with root user would work. But how to clone it without allowing SSH server to login as root, just by using a git user?