{"action":"created","issue":{"url":"https://api.github.com/repos/phpmentoring/webapp/issues/61","labels_url":"https://api.github.com/repos/phpmentoring/webapp/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/phpmentoring/webapp/issues/61/comments","events_url":"https://api.github.com/repos/phpmentoring/webapp/issues/61/events","html_url":"https://github.com/phpmentoring/webapp/issues/61","id":114393815,"number":61,"title":"The vagrantbox seems not to be working","user":{"login":"PurpleBooth","id":133327,"avatar_url":"https://avatars.githubusercontent.com/u/133327?v=3","gravatar_id":"","url":"https://api.github.com/users/PurpleBooth","html_url":"https://github.com/PurpleBooth","followers_url":"https://api.github.com/users/PurpleBooth/followers","following_url":"https://api.github.com/users/PurpleBooth/following{/other_user}","gists_url":"https://api.github.com/users/PurpleBooth/gists{/gist_id}","starred_url":"https://api.github.com/users/PurpleBooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PurpleBooth/subscriptions","organizations_url":"https://api.github.com/users/PurpleBooth/orgs","repos_url":"https://api.github.com/users/PurpleBooth/repos","events_url":"https://api.github.com/users/PurpleBooth/events{/privacy}","received_events_url":"https://api.github.com/users/PurpleBooth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-31T07:07:36Z","updated_at":"2015-11-05T05:12:53Z","closed_at":null,"body":"```\r\nBillies-MacBook-Pro-2:webapp billie$ VBoxManage --version\r\n5.0.8r103449\r\n```\r\n\r\n```\r\nBillies-MacBook-Pro-2:webapp billie$ vagrant --version\r\nVagrant 1.7.4\r\n```\r\n```\r\nBillies-MacBook-Pro-2:webapp billie$ vagrant destroy && vagrant up\r\n==> default: VM not created. Moving on...\r\nBringing machine 'default' up with 'virtualbox' provider...\r\n==> default: Importing base box 'puphpet/debian75-x64'...\r\n==> default: Matching MAC address for NAT networking...\r\n==> default: Checking if box 'puphpet/debian75-x64' is up to date...\r\n==> default: Setting the name of the VM: webapp_default_1446275070140_16109\r\n==> default: Clearing any previously set network interfaces...\r\n==> default: Preparing network interfaces based on configuration...\r\n    default: Adapter 1: nat\r\n    default: Adapter 2: hostonly\r\n==> default: Forwarding ports...\r\n    default: 80 => 8080 (adapter 1)\r\n    default: 1080 => 1080 (adapter 1)\r\n    default: 3306 => 7512 (adapter 1)\r\n    default: 22 => 2222 (adapter 1)\r\n==> default: Running 'pre-boot' VM customizations...\r\n==> default: Booting VM...\r\n==> default: Waiting for machine to boot. This may take a few minutes...\r\n    default: SSH address: 127.0.0.1:2222\r\n    default: SSH username: vagrant\r\n    default: SSH auth method: private key\r\n    default: Warning: Connection timeout. Retrying...\r\n    default: \r\n    default: Vagrant insecure key detected. Vagrant will automatically replace\r\n    default: this with a newly generated keypair for better security.\r\n    default: \r\n    default: Inserting generated public key within guest...\r\n    default: Removing insecure key from the guest if it's present...\r\n    default: Key inserted! Disconnecting and reconnecting using new SSH key...\r\n    default: Warning: Authentication failure. Retrying...\r\n    default: Warning: Authentication failure. Retrying...\r\n    default: Warning: Authentication failure. Retrying...\r\n```"},"comment":{"url":"https://api.github.com/repos/phpmentoring/webapp/issues/comments/153959688","html_url":"https://github.com/phpmentoring/webapp/issues/61#issuecomment-153959688","issue_url":"https://api.github.com/repos/phpmentoring/webapp/issues/61","id":153959688,"user":{"login":"dragonmantank","id":108948,"avatar_url":"https://avatars.githubusercontent.com/u/108948?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonmantank","html_url":"https://github.com/dragonmantank","followers_url":"https://api.github.com/users/dragonmantank/followers","following_url":"https://api.github.com/users/dragonmantank/following{/other_user}","gists_url":"https://api.github.com/users/dragonmantank/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonmantank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonmantank/subscriptions","organizations_url":"https://api.github.com/users/dragonmantank/orgs","repos_url":"https://api.github.com/users/dragonmantank/repos","events_url":"https://api.github.com/users/dragonmantank/events{/privacy}","received_events_url":"https://api.github.com/users/dragonmantank/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T05:12:53Z","updated_at":"2015-11-05T05:12:53Z","body":"This is actually a problem with puphpet and newer installs of vagrant where the key doesn't get added correctly and isn't specific to our box. Vagrant now tries to detect the old insecure key, and for some reason with puphpet boxes it _always_ thinks the insecure key is there and messes up.\r\n\r\nWhen this happens, you have to get the text from `puphpet/files/dot/ssh/id_rsa.pub` and add it to the `~/.ssh/authorized_keys2` file for the vagrant user.\r\n\r\nIn another window, run `ssh vagrant@localhost -p 2222`, use `vagrant` as a password, and add that public key text to authorized_keys2 file. Shut down the VM, and `vagrant up` it again and it should connect."}}