前提・実現したいこと
GitlabでCloneができなくて困っています。
git git clone git@192.168.1.0:GITLAB_NAME/test.git
を実行すると以下のエラーメッセージが出てCloneすることができません。
発生している問題・エラーメッセージ
Cloning into 'NewPj'... ssh: connect to host localhost port 10022: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
実行したコマンド
ssh-keygen -t rsa -C "your.email@example.com" -b 4096
cat ~/.ssh/id_rsa.pub
上記を実行し、表示されたコードを全てコピーして、gitlab の SSH Keys の [Key] 内に張り付け、[Add Key] を押して登録。
ssh-add ~/.ssh/id_rsa
git clone git@192.168.1.0:GITLAB_NAME/test.git
何度か鍵を作り直したり試したのですが、解決できませんでした。
こちら何かお分かりになりましたら、宜しくお願いします。
追記:
SSHではなく git clone http://test@localhost:10080/test/NewPj.git
を実行してもうまくいきませんでした。
発生している問題・エラーメッセージ
Cloning into 'NewPj'...
fatal: unable to access 'http://test@localhost:10080/test/NewPj.git/': Failed to connect to localhost port 10080: Connection refused
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。