Skip to content
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

centos 7: ssh asks for password #4

Open
npf opened this issue Jun 12, 2015 · 3 comments
Open

centos 7: ssh asks for password #4

npf opened this issue Jun 12, 2015 · 3 comments
Labels

Comments

@npf
Copy link
Contributor

npf commented Jun 12, 2015

==> server: Waiting for machine to boot. This may take a few minutes...
server: SSH address: 127.0.0.1:2222
server: SSH username: vagrant
server: SSH auth method: private key
server: Warning: Connection timeout. Retrying...
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.
[email protected]'s password:

once provided, boot continues...

Then new error:
In the end, /home/vagrant/.ssh does not exist...

see full logs:
https://gist.github.com/npf/0a249296ed4996b63e59

@npf npf added the bug label Jun 12, 2015
@npf
Copy link
Contributor Author

npf commented Jun 12, 2015

removing `config.ssh.insert_key = false' does not change anything

@npf npf changed the title oar-vagrant/centos 7: ssh ask for password centos 7: sshs ask for password Jun 12, 2015
@npf npf changed the title centos 7: sshs ask for password centos 7: ssh asks for password Jun 12, 2015
@npf
Copy link
Contributor Author

npf commented Jun 15, 2015

Comparing Centos7 and Centos6 boxes as imported by vagrant and before any provisioning, on Centos6, /home/vagrant/.ssh exists and authorized_keys contains the insecure vagrant key (public conterpart of $HOME/.vagrantd/insecure_private_key)... On Centos7, there is no /home/vagrant/.ssh in the box..

@npf
Copy link
Contributor Author

npf commented Jun 15, 2015

As commented in #6, not setting `config.ssh.insert_key = false' in the Vagrantfile apparently makes the "secured" key inserted later in the process, but still, the unsecured key should be present beforehand, which should also fix #6 in the end.

@npf npf closed this as completed Jun 15, 2015
@npf npf reopened this Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant