Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | |||||
4 | echo "vinstall ALL=(ALL) NOPASSWD:ALL" > tmp | ||||
5 | sudo chown root.root tmp | ||||
6 | sudo mv tmp /etc/sudoers.d/vinstall | ||||
7 | mkdir .ssh | ||||
8 | chmod 0700 .ssh | ||||
9 | ssh-keygen -f /home/vinstall/.ssh/id_rsa -t rsa -N '' |