Skip to content

Instantly share code, notes, and snippets.

@jeongho
Created September 12, 2017 05:03
Show Gist options
  • Save jeongho/41f239892f176425e9c8f37959e03762 to your computer and use it in GitHub Desktop.
Save jeongho/41f239892f176425e9c8f37959e03762 to your computer and use it in GitHub Desktop.
configure root user
csshx --login root 172.16.0.10[0-4]
------------------------------
ssh-keygen -t rsa -b 4096 -C $(hostname)@antarcticatec.com -P '' -f /root/.ssh/id_rsa
touch /root/.ssh/authorized_keys
chmod 400 /root/.ssh/authorized_keys
#add ssh public key to root's authorized_keys
vi /root/.ssh/authorized_keys
------------------------------
#add ssh public key to root's authorized_keys
#@your macbook
pbcopy < ~/.ssh/id_rsa.pub
------------------------------
csshx --login root 172.16.0.10[0-4]
------------------------------
ansible test -m ping -u root
ansible appliance -m ping -u root
ansible-playbook appliance-test.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment