I work on a private network with a git repository hosted there at git.mycompany.com.
I have a remote server without access to this private network, I access it via ssh. To get my code to the server, I was recommended to use scp. This isn't ideal.
I am trying to use ssh forwarding to allow me to use commands like git clone on this server like
ssh -L 9418:git.mycompany.com:9418 [email protected]
Then use git clone like
git clone my.name@localhost:my_project/my_project.git
after creating and adding an ssh key to my git server as I usually would. But git asks me for a password, and entering my password does not work, so I assume something in my method is incorrect.
Permission denied, please try again.
I can't tell if the authorization is not working, or my traffic forwarding is wrong.