I’ve tried to set up an ssh connection towards a Gitea docker container so that I can perform git clone through ssh. There are some issues and questions that I’ve met along the way. The instruction that I followed is this:https://docs.gitea.io/en-us/install-with-docker/
- I sort of guessed that the file within /app/gitea/gitea is for preventing strict key check. But within Fedora 30. /app doesn’t exist in the first place. I’d highly doubt how it can work properly. Thus, if I’d like to stop the strict key check, what’s the correct path that I make the executable file?
- After I complete the instruction, copied the generated key pairs into the mounted volume. The ssh session returned to me with permission denied (public key)
- I then copied the key file from the server to the remote computer. The ssh session was successful, but git clone command still failed me. I wonder if I’ve typed in the wrong git clone command?
- A couple of things that I’ve done other than the instruction. I’ve set the SELINUX to be permissive, I’ve opened up the 2222 port with firewall-cmd as tcp port. I’ve set the port forwarding from 2222 on host server towards 22 on container. I’ve changed app.ini so that built-in ssh server is used.