VagrantとVirtualBoxの環境を整えた際に詰まったことの忘備録
久々にMacのPCでvagrant upを叩くと以下のエラーが出た。
vagrant up
-----------------------
No usable default provider could be found for your system.
Vagrant relies on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.
The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.
If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn't working by forcing usage with
`vagrant up --provider=PROVIDER`, which should give you a more specific
error message for that particular provider.
-----------------------
GitHubからcloneした際のPermission denied (publickey).エラー
久々にMacのPCで環境を構築しようとした際に
GitHubからcloneコマンドを叩くとエラーになった。
git clone git@github.com:kenjis/vagrant-fuelphp-centos6.git vagrant
以下のエラーが出る
Permission denied (publickey).
......
以下対応
$ cd ~/.ssh
$ ssh-keygen -t rsa -C "xxxxxx@yyyyy.com" // 自分のGitHubアカウント
# macなら
$ pbcopy < ~/.ssh/id_rsa.pub
GitHubのSetting から SSH and GPG keys
id_rsa.pubの中身を貼り付け
■備考
接続確認のコマンド
ssh -T git@github.com
参考(ほぼ引用に近い)
[GitHub] 公開鍵登録の際に、Permission denied (publickey). が出続ける場合の対応 (vagrantからsshする場合の注意も)
https://qiita.com/colorrabbit/items/6c3e96c394bb0f753ea0