wckr / wocker

Create your WordPress development environment in 3 SECONDS!
https://wocker.dev/
MIT License
480 stars 42 forks source link

SSH Permission Denied (fresh install) #78

Closed jbalke closed 6 years ago

jbalke commented 6 years ago

Not a ssh guru by any means but followed the "Run a New Wocker Container" instructions and am getting the following:

PS C:\wocker> vagrant ssh bargee@127.0.0.1: Permission denied (publickey,keyboard-interactive).

This is on a fresh, new (and up-to-date) install of virtualbox, vagrant and wocker. Otherwise, the test site is running fine.

What am i missing?

ixkaito commented 6 years ago

@jbalke Did you run your shell as an admin? I'm afraid you have to do it on Windows.

jbalke commented 6 years ago

Sure did @ixkaito

I can see that ssh works fine during provisioning but it just won't allow me to log in interactively.

jbalke commented 6 years ago

Ok I have an update...

Using putty (converting the private_key), I logged into wocker fine.

I did attempt to troubleshoot via the windows beta ssh client, got a warning about the private_key being unprotected and that it would be ignored. After tightening up the permissions I then got an error about the key being an invalid format... hence resorting to putty.

This is all on a fresh Windows 10 Pro install, along with vagrant, virtualbox and wocker... i basically had to rebuild my PC prior to setting up my wordpress dev env. Ran the powershell console as Admin the whole time, shouldn't be this difficult but happy enough with the workaround.

ixkaito commented 6 years ago

@jbalke Glad to hear it. If you still have any troubles, just let me know 🙂

JayOwl commented 4 years ago

I had a similar problem. I had to use GitBash to access the the ssh.

  1. Use Gitbash
  2. Go to Wocker install directory.
  3. vagrant up
  4. Once finished, vagrant ssh
  5. You have to start wocker, wocker run
  6. Go to wocker.test.

Thats what worked for me, hopefully this helped someone out.

I have to repeat the vagrant ssh and wocker run step which kinda sucks coming from VVV. I'm trying this out since every-time there seems to be an update for VVV, it breaks and I have to reinstall everything, its annoying to do once every 2 months or so.