Ansible: Difference between revisions
From DWIKI
m (→Links) |
m (→Quickstart) |
||
Line 12: | Line 12: | ||
On 'clients' edit /etc/ssh/sshd_config to | On 'clients' edit /etc/ssh/sshd_config to | ||
PermitRootLogin | PermitRootLogin without-password | ||
and restart sshd | and restart sshd | ||
Edit/create ~root/.ssh/authorized_keys and add: | Edit/create ~root/.ssh/authorized_keys and add: | ||
from="ip.of.ansible.server" <paste public key here> | from="ip.of.ansible.server" <paste public key here> |
Revision as of 08:19, 14 April 2015
Configuration management
Links
Quickstart
On server as root create key:
ssh-keygen
(go for defaults) and then get content of ~/.ssh/id_rsa.pub in your copypastebuffer
On 'clients' edit /etc/ssh/sshd_config to
PermitRootLogin without-password
and restart sshd
Edit/create ~root/.ssh/authorized_keys and add:
from="ip.of.ansible.server" <paste public key here>