carlosfgti/vagrant-setup-php

ERROR - SSH auth method: private key

budswarez opened this issue · 3 comments

Olá ao tentar levantar a máquina o Vagrant não passa da seguinte linha
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu-server-14.04'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: ubuntu-server-php
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 80 (guest) => 8080 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key


Estou a utilizar a ultima versão do Virtual Box 5.0.12 r 104815

Confere se a virtualização da sua maquina não está desabilitada na BIOS, caso esteja habilite.

Os programas VirtualBox e Vagrant precisão estar atualizados também 👍

Olá,

Tentei logar no ssh com usuario root e senha vagrant, mas não consigo, na inicialização diz que o método de autenticação é com chave, qual seria essa chave?

Grato

Se estiver utilizando o Windows acessa a pasta do projeto com o GitBash e roda o comando: vagrant ssh
Isso já vai fazer a troca de chavez publicas e privadas entre client e server automaticamente e já vai acessar a VM do vagrant.

Este comando também funciona em sistemas Unix (Linux e Mac)