mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Setup Script - Fix Path for ssh key
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user