git远程添加其他SSH端口 [英] git remote add with other SSH port
本文介绍了git远程添加其他SSH端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Git中,当我的主机使用不同的SSH端口时,如何添加远程原始服务器?
git remote add origin ssh:// user @ host / srv / git / example
$ c $您可以这样做:
<$>
$ b 解决方案 p $ p> git remote add origin ssh:// user @ host:1234 / srv / git / example
1234
是正在使用的ssh端口
In Git, how can I add a remote origin server when my host uses a different SSH port?
git remote add origin ssh://user@host/srv/git/example
解决方案
You can just do this:
git remote add origin ssh://user@host:1234/srv/git/example
1234
is the ssh port being used
这篇关于git远程添加其他SSH端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文