On Sunday, April 20, 2014 4:24:25 PM UTC-4, Daniel Charbonneau wrote: > > The remote machine I am logging into currently only allows me to login via > root, but I'd like to create another user and perform configurations as > this user. I don't know how to do this, would someone point me to a few > resources explaining this, or if someone is willing to explain via email, I > would appreciate this too! >
One additional comment to the original poster.. If you are moving to have ansible manage the machine and don't need root logins anymore don't forget to change PermitRootLogin no And restart ssh If for any reason you still wanted the ansible machine to have access from root perhaps this may be an option: #Allow only the monitoring machine to connect through root Match Address #.#.#.# <--- where #.#.#.# is the IP from the ansible machine. PermitRootLogin yes I am currently using the above setup to get machines under ansible control quickly.. while I learn better/safer ways to do it. If the machine only allows logins with ssh keys I would suspect having root login from a single IP with a key may not be too bad an option. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/59d4cae0-8a90-4a23-84a2-e851816ebd55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
