My VPS provider recommends that I leave my SSH port to the custom port number they assign it by default (not 22). The thing is the while I know I can give the port number when create a remote config, it seems like I can't do the same when doing a git clone. I am using gitolite so I clone commands look like:
git clone git@mydomain.com:gitolite-admin
Is there a way to covert this to using the custom ssh port number?
I should also mention I am running cygwin on windows. I have seen multiple places saying to add the custom port to the ~/.ssh/config
file like
Host mydomain.com
Port 12345
however in cygwin, that file does not seem to exist.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…