In this brief article you will learn to add a git remote with another SSH Port. By default SSH server listens on port 22. If the SSH server runs on any other port the command to add remote will fail with error ssh connect to host 192.158.xx.xx port 22 Connection refuse.
Git is a free amp open-source version control system that almost all developers use today. No matter what project youre working on Git can help you manage your code efficiently.
It is faster than any other way of transmitting code to a remote location. Its lightening fast performance can transmit the entire application within seconds to the production server staging server or a bitbucket repository.
To learn more about git read our Learn Git series.
After initializing the local repository one needs to add at least one remote repository to push code to that remote. By default git requires a server username and IP address to add a remote repository.