-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH access to vagrant VMs is denied #72
Comments
(I am not an expert in Vagrant.) What is your base OS? I know that it works on a mac with vagrant 1.8.5. I would check your vagrant version. |
I am on ubuntu 16.04, with vagrant version 1.8.1, maybe it needs the latest, I will update and report back, thanks! |
The fact that vagrant ssh does not work for you makes me believe that something is wrong with the "routes" that vagrant sets up. May be there is some conflict with the IP address that vagrant uses with your host routing table? I would also look at "route -n" to see whether there is conflicts. |
And only do "vagrant up k8s-master" to save on time. |
vagrant is trying to ssh, though local net 127.0.0.1 I would not see any profound conflict. |
Also when I try to ssh in the VM, the ubuntu/combination does not work, what is the password? |
Doesn't using "vagrant ssh k8s-master" from the vagrant directory not work (I think it uses SSH keys)? I think using ssh via password is disabled. But let me check to make sure by spinning up a vagrant env. |
May be you are hitting this? |
yes this is probable, however I tried some other images and the ssh never seems to work, it is strange.. |
No. Nobody apparently knows the password for username "ubuntu". Just to make sure, doesn't "vagrant ssh k8s-master" not work from the vagrant directory? |
No, it just asks for the unknown password, I also tried the bce13c362bdf6d1518510c23, which someone mentions with no luck. |
No. It does not ask for a password. Did you upgrade your vagrant to atleast 1.8.5? |
Yes i upgraded to 1.9.1 |
I don't know whether upgrading the virtualbox too will help. I am trying to see if trusty64 works. |
Ok i somehow, managed to ssh into the VM
config.ssh.private_key_path = "~/.ssh/id_rsa"
However, vagrant up still cannot connect, and so the VM remains emtpy, as it does not execute any script further. And sidenote, although I have told it to use a private key, it still resorts to password method (??) Would it make sense to run the scripts from inside the VM? PS: This is with virtualbox 5.1, also upgraded. |
It should work. |
Btwn, I am available as "shettyg" in openvswitch IRC channel, if you prefer faster turnarounds. |
Ok good to know, I will ping you from there, I will do a dry run on a Mac tomorrow, and let you know Thanks for the support! |
Surprisingly, I was able to "vagrant ssh k8s-master" on a Ubuntu 16.04 host with vagrant 1.9.1 |
I did a dry run on vagrant windows 10 works like a charm, then tried a fresh install on ubuntu 16.04 and it works! NOTE: Always run vagrant with sudo (!!!) |
Bug 1798613: OVN: Bump image to include ovn2.12
Hello I have been trying to set up the vagrant script for ovn-kubernetes, everything works fine until, the script tries to access the VM
k8s-master: Forwarding ports...
k8s-master: 22 (guest) => 2222 (host) (adapter 1)
==> k8s-master: Running 'pre-boot' VM customizations...
==> k8s-master: Booting VM...
==> k8s-master: Waiting for machine to boot. This may take a few minutes...
k8s-master: SSH address: 127.0.0.1:2222
k8s-master: SSH username: ubuntu
k8s-master: SSH auth method: password
k8s-master: Warning: Remote connection disconnect. Retrying...
k8s-master: Warning: Remote connection disconnect. Retrying...
This goes on for several seconds, and if you do a vagrant up 2 more times you have your VMs ready
However, when you try to access them via ssh, you cannot, wither using ubuntu/ubuntu, or vagrant/vagrant, or via changing the Vagrantfile, setting a username and password and reloading the configuration.
Thank you,
Akis
The text was updated successfully, but these errors were encountered: