I have ssh keys setup to work on a specified port (e.g. 12345) and issued the following git command to set the origin on a local repo.
git remote add origin myusername@mydomain.com:12345/path/to/public_html/files/
I am getting the following error message when i try to push to origin.
ssh: connect to host mydomain.com port 22: Connection refused
fatal: The remote end hung up unexpectedly
How do i set origin so it is using the proper port for ssh?