JuanPablo JuanPablo - 1 year ago 136
Git Question

git remote add with other ssh port

In git, how I can add a remote origin when my host use a different ssh port?

git remote add origin ssh://user@host/srv/git/example

Answer Source

You can just do this:

git remote add origin ssh://user@host:1234/srv/git/example