In Git, how can I add a remote origin server when my host uses a different SSH port?
git remote add origin ssh://user@host/srv/git/example
In Git, how can I add a remote origin server when my host uses a different SSH port?
git remote add origin ssh://user@host/srv/git/example
Best answer doesn't work for me. I needed
ssh://
from the beggining.You can just do this:
1234
is the ssh port being usedYou need to edit your ~/.ssh/config file. Add something like the following:
A quick google search shows a few different resources that explain it in more detail than me.
For those of you editing the
./.git/config