問題是,當我使用遠程連接字符串是這樣的:遠程Git不通過SSH工作://而是通過精細的工作SCP-如ssh
[email protected]_ip:admin/repo.git
一切工作正常,但是當我使用:
ssh://[email protected]_ip:22/admin/repo.git
我得到一個錯誤(在git的拉):
ssh: connect to host my_ip port 22: No route to host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository
exists.
是的,我有正確的訪問權限與SSH密鑰,並將其與工作scp式連接字符串絕對沒問題。
我也可以用ssh客戶端(putty)連接到端口22上的ssh,沒問題。
我的答案解決了你的問題嗎?如果是這樣,您應該將其標記爲已接受的答案。如果您需要更多信息,請隨時告訴我任何問題。 – ComputerLocus