Created
September 12, 2017 05:03
-
-
Save jeongho/41f239892f176425e9c8f37959e03762 to your computer and use it in GitHub Desktop.
configure root user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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