„authorize-server“ ändern
This commit is contained in:
parent
4b1729a795
commit
4fdd531b9e
@ -8,7 +8,7 @@ while IFS= read -r SERVER || [ -n "$SERVER" ]; do
|
|||||||
done < "$SERVER_LIST_FILE"
|
done < "$SERVER_LIST_FILE"
|
||||||
|
|
||||||
# Read the public SSH key from the update server
|
# Read the public SSH key from the update server
|
||||||
UPDATE_SERVER="192.168.1.100" # replace with your update server IP address
|
UPDATE_SERVER="10.0.3.77" # replace with your update server IP address
|
||||||
PUBLIC_KEY=$(ssh root@${UPDATE_SERVER} "cat ~/.ssh/id_rsa.pub")
|
PUBLIC_KEY=$(ssh root@${UPDATE_SERVER} "cat ~/.ssh/id_rsa.pub")
|
||||||
|
|
||||||
# Loop through the server list and add the public key to the authorized_keys file of each server
|
# Loop through the server list and add the public key to the authorized_keys file of each server
|
||||||
|
Loading…
Reference in New Issue
Block a user