установил homestead. создал ключи для ssh, поместил их в папку ~/.ssh/
В Homestead.yaml пути до ключей корректные.
В браузере homestead.app сайт открывает.
Но если зайти через Putty, пишу хост vagrant@127.0.0.1 , порт 2222, тогда пишет:
Using username "vagrant". vagrant@127.0.0.1's password: Access denied vagrant@127.0.0.1's password:
Почему он просит пароль если авторизация должна быть по ключу?
Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены. C:\Users\Unbreakable>homestead up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'laravel/homestead'... ←[K==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'laravel/homestead' is up to date... ==> default: Setting the name of the VM: homestead ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 80 (guest) => 8000 (host) (adapter 1) default: 443 (guest) => 44300 (host) (adapter 1) default: 3306 (guest) => 33060 (host) (adapter 1) default: 5432 (guest) => 54320 (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 default: Warning: Remote connection disconnect. Retrying... default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: The guest additions on this VM do not match the installed version o f default: VirtualBox! In most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. If you see default: shared folder errors, please make sure the guest additions within t he default: virtual machine match the version of VirtualBox you have installed on default: your host and reload your VM. default: default: Guest Additions Version: 5.0.4 default: VirtualBox Version: 5.1 ==> default: Setting hostname... ==> default: Configuring and enabling network interfaces... ==> default: Mounting shared folders... default: /vagrant => C:/Users/Unbreakable/AppData/Roaming/Composer/vendor/la ravel/homestead default: /home/vagrant/Code => C:/Users/Unbreakable/Code ==> default: Running provisioner: file... ==> default: Running provisioner: shell... default: Running: inline script ==> default: grep: unrecognized option '---- BEGIN SSH2 PUBLIC KEY ---- ==> default: Comment: "rsa-key-20161210" ==> default: AAAAB3NzaC1yc2EAAAABJQAAAgEApGtiFTeR7gu8htc13X0t1Ll1Ca5gVK6CWW2k ==> default: rodjChuNBhotZoLeENkfcRKi6yKWWvG69vtAPd32uR9UdKyZHfiAJtNUBTQCU/UL ==> default: 5nVSSkoxkocrE8G4p0rsY/hKjOv4aalFdkyieg/w8UWAj8ZRpu54Utta0pZY7BEO ==> default: C3/hUksIXxpbfNRCrvPKUNNbunO+b/5Mqe4rRzxSpwWW6FXd7B+sqP3Y/Fqs6ZDn ==> default: Dp7I79jd2hfmbzn0vP21Ha8RxMBn02N/EB4C8y4udXUV0hsoprJFcdV35J18tCmj ==> default: 3RB6mxznKSvck87R7NqYHdt8S2Kw4EJJC7UKi6kjG/OqQvuDX1Yg5z4jLzDrOnuV ==> default: usb+CM7XOXRveNEbt7Jxb6J0dzKL23V9NODyQpwgJwSDVY00iGsb3T69Sh3Dt7Xy ==> default: wJ9SpNFOol9aDLQ7h3r7OiQ5fa1Ohcfud4Rib3ogQXDQuhhHtwjIBLKIPuutBjzY ==> default: S/Un3/sf2VrzC3IIP179aO2TQ+Qj08RedpVc+WiCWhGQ5gDewnlj/ha2vv3tYlpG ==> default: dNso6oRx/e3ByUNxvzkUX9+C5bWEHOg8A+488HvZq5OkKKTQGWmfnqpRonfN3aoe ==> default: B9yn3KRdhKoA0qh0f9YZd2HKfUvRac+ihVMJ8JtmcMjp2wwjWQFiivtlsnEClEZL ==> default: DiVCnOs= ==> default: ---- END SSH2 PUBLIC KEY ---- ==> default: ' ==> default: Usage: grep [OPTION]... PATTERN [FILE]... ==> default: Try 'grep --help' for more information. ==> default: ---- BEGIN SSH2 PUBLIC KEY ---- Comment: "rsa-key-20161210" AAAAB3N zaC1yc2EAAAABJQAAAgEApGtiFTeR7gu8htc13X0t1Ll1Ca5gVK6CWW2k rodjChuNBhotZoLeENkfcR Ki6yKWWvG69vtAPd32uR9UdKyZHfiAJtNUBTQCU/UL 5nVSSkoxkocrE8G4p0rsY/hKjOv4aalFdkyie g/w8UWAj8ZRpu54Utta0pZY7BEO C3/hUksIXxpbfNRCrvPKUNNbunO+b/5Mqe4rRzxSpwWW6FXd7B+s qP3Y/Fqs6ZDn Dp7I79jd2hfmbzn0vP21Ha8RxMBn02N/EB4C8y4udXUV0hsoprJFcdV35J18tCmj 3R B6mxznKSvck87R7NqYHdt8S2Kw4EJJC7UKi6kjG/OqQvuDX1Yg5z4jLzDrOnuV usb+CM7XOXRveNEbt 7Jxb6J0dzKL23V9NODyQpwgJwSDVY00iGsb3T69Sh3Dt7Xy wJ9SpNFOol9aDLQ7h3r7OiQ5fa1Ohcfu d4Rib3ogQXDQuhhHtwjIBLKIPuutBjzY S/Un3/sf2VrzC3IIP179aO2TQ+Qj08RedpVc+WiCWhGQ5gD ewnlj/ha2vv3tYlpG dNso6oRx/e3ByUNxvzkUX9+C5bWEHOg8A+488HvZq5OkKKTQGWmfnqpRonfN3a oe B9yn3KRdhKoA0qh0f9YZd2HKfUvRac+ihVMJ8JtmcMjp2wwjWQFiivtlsnEClEZL DiVCnOs= --- - END SSH2 PUBLIC KEY ---- ==> default: Running provisioner: shell... default: Running: inline script ==> default: Running provisioner: shell... default: Running: C:/Users/UNBREA~1/AppData/Local/Temp/vagrant-shell20161214 -3956-99x66m.sh ==> default: Running provisioner: shell... default: Running: C:/Users/UNBREA~1/AppData/Local/Temp/vagrant-shell20161214 -3956-93ylub.sh ==> default: nginx stop/waiting ==> default: nginx start/running, process 1896 ==> default: php5-fpm stop/waiting ==> default: php5-fpm start/running, process 1911 ==> default: Running provisioner: shell... default: Running: C:/Users/UNBREA~1/AppData/Local/Temp/vagrant-shell20161214 -3956-16qeeog.sh ==> default: mysql: ==> default: [Warning] Using a password on the command line interface can be ins ecure. ==> default: Please use --connect-expired-password option or invoke mysql in int eractive mode. The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong. C:\Users\Unbreakable>
напишите что подключение к homestead с помощью ssh, проходит по хосту vagrant@127.0.0.1 и паролю vagrant.
А то я запарился мозговать, почему консоли не пускает без пароля, хотя авторизация должна быть по ключу.