devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 146 forks source link

Unable to update /etc/hosts if ssh root-login has been disabled #210

Closed christopherraa closed 2 years ago

christopherraa commented 8 years ago

For us to have a dev-environment that is as close to production as possible we change as little as possible in our puppet-manifests. One thing that puppet ensures is that root is denied from logging in via ssh. This is especially important to leave as-is if spinning up machines with various cloud providers where network etc is shared between all nodes in the datacenter (Rackspace, Aws, DigitalOcean, etc). Anyway, this is roughly the steps being performed now:

Example of auth.log-entries:

Aug 10 04:15:35 <NODE> sshd[21121]: ROOT LOGIN REFUSED FROM <IP>
Aug 10 04:15:35 <NODE> sshd[21121]: ROOT LOGIN REFUSED FROM <IP> [preauth]
Aug 10 04:15:35 <NODE> sshd[21121]: Connection closed by <IP> [preauth]

I do not have a very good proposition for fix of this yet, but perhaps you can think of something? When using vagrant ssh <NODE> I usually use -p so normal auth-mechanisms are used. Perhaps some usage of this could help alleviate the situation.

christopherraa commented 2 years ago

Closing this issue as it was opened five years ago and has had no activity since.