Setup Script - Fix Path for ssh key

This commit is contained in:
Mike Reeves
2018-03-27 10:07:03 -04:00
parent 99294dbdb2
commit b661cc7030

View File

@@ -112,8 +112,9 @@ configure_sensor_pillar() {
copy_ssh_key() {
# Generate and copy SSH key
mkdir -p ~/.ssh
cat /dev/zero | ssh-keygen -f ~/.ssh/so.key -t rsa -q -N ""
chown $SUDO_USER:$SUDO_USER ~/.ssh/so.key*
chown -R $SUDO_USER:$SUDO_USER ~/.ssh
#Copy the key over to the master
sudo ssh-copy-id -i ~/.ssh/so.key socore@$MASTER
}