同じネットワーク上にLinuxサーバーをセットアップしていて、リポジトリをコンピューターに追加しようとすると、次のエラーメッセージが表示されます。
ssh: Could not resolve hostname 192.168.1.128:: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
私はMacでgittowerを使用していますが、リポジトリのURLは次のようになります。
ssh://linux@192.168.1.128:/var/www/gitrepo/cm_main.git
更新:(ssh://を削除した後に表示されるエラーメッセージ
Pushing to linux@192.168.1.128:/var/www/gitrepo/cm_main.git
Counting objects: 965, done.
Delta compression using up to 2 threads.
Compressing objects: 0% (1/946)
Compressing objects: 1% (10/946)
...
Compressing objects: 99% (937/946)
Compressing objects: 100% (946/946)
Compressing objects: 100% (946/946), done.
Writing objects: 0% (1/965)
Writing objects: 1% (10/965)
Writing objects: 2% (20/965)
Writing objects: 3% (29/965)
fatal: Unable to create temporary file '/var/www/gitrepo/cm_main.git/.git/./objects/pack/tmp_pack_XXXXXX': Permission denied
error: pack-objects died of signal 13
error: failed to push some refs to 'linux@192.168.1.128:/var/www/gitrepo/cm_main.git'