2010-08-08

Handling SSH on non-standard ports for subversion and git

Working with subversion and git over SSH on a non-standard port (!=22) is troublesome as the host:port syntax does not work.

One easy way around this is to to define an entry as the following in $HOME/.ssh/config:
Host my.githost.com
Port 7822

This allows one to use the host normally through most SSH-using tools such as subversion and git!

No comments: