LoginSignup
0
0

More than 3 years have passed since last update.

vagrant でgit pushできない

Last updated at Posted at 2020-05-31

エラー内容

$ git push origin master
Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists.

解決策

vagrant 環境でgitの秘密鍵が設定されていないから。

まず、ローカルで

cd .ssh
cp id_rsa ~/Document/work/vagrant

仮想環境で

mv id_rsa ~/.ssh

これでOK!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0