F5 iApp Automated Backup
Problem this snippet solves:
This is now available on GitHub!
Please look on GitHub for the latest version, and submit any bugs or questions as an "Issue" on GitHub:
(Note: DevCentral admin upd...
Updated Feb 15, 2022
Version 2.0Daniel_Tavernie
Cirrostratus
Joined December 19, 2012
PhillyPDXmike_1
Jun 01, 2018Nimbostratus
In my testing, using the backup files via SCP/SFTP option doesn't save a copy locally.
For the "Copy/Paste the SSH private key to be used for passwordless authentication:" option, I copied/pasted the entire RSA private key including -----BEGIN RSA PRIVATE KEY-----, -----END RSA PRIVATE KEY-----, and everything in between. Also, I found these links F5 K13454 and tecmint article very helpful in getting the ssh passwordless authentication working properly, although I didn't have to change any settings on my linux server.
- On F5 BIG-IP appliance, create 2048 bit RSA key using the following command at a bash prompt: ssh-keygen -t rsa -b 2048
- Accept the default location to save the key (/root/.ssh/id_rsa) by hitting enter
- Leave the passphrase blank by hitting enter then hit enter again.
- The private key will be save as /root/.ssh/id_rsa and the public key as /root/.ssh/id_rsa.pub
- If necessary, create the .ssh directory on the SSH server using the command: ssh user@X.X.X.X mkdir -p .ssh
- Copy the public key from the F5 to your SSH server using the following using the command: cat /root/.ssh/id_rsa.pub | ssh user@X.X.X.X 'cat >> .ssh/authorized_keys'
- If necessary, change the permission on the .ssh directory and authorized_keys file using the command: ssh username@ip.address "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"