1. 程式人生 > >git bash使用端口轉發連接服務器

git bash使用端口轉發連接服務器

stack bash 根據 通過 user ash quest ssh pos

之前的配置是

      url = [email protected]:/home/tutu/thelib/ww.git

xx.xx.xx.xx是服務器的外網地址,其內網地址是zz.zz.zz.zz

但是現在服務器沒有自己的外網,需要通過服務器yy.yy.yy.yy的端口8822進行轉發,轉發到zz.zz.zz.zz:22

此時,根據https://stackoverflow.com/questions/1558719/using-a-remote-repository-with-non-standard-port ,配置應該為

url = ssh://[email protected]:8822/home/tutu/thelib/ww.git

git bash使用端口轉發連接服務器