JuanPablo JuanPablo - 11 days ago 8
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

You can just do this:

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