To practice git, I created a git user and a bare repository in the directory /home/gituser/project.git. I created a new user and sshkeys stored in /home/Tom/.ssh. I have added the origin master for gituser in user Tom.
I added a readme file, staged it, and committed the changes. While trying to push changes with push origin master, I got this error:
ssh: connect to host desktop-avnq82i port 22: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
How would I be able to fix this problem? Both of the users have admin permissions on ubuntu 20.04 app in Windows 10 and only the gituser is in a group:dev.
Note that both the users are on the same computer.