Installed the AWS CLI
apt-get install python3-pipUbunutu 16.x needs this as there is a bug in the package above
pip3 install awscli --upgradeI used this script as the base for the AWS Route 53 Zone update and Certificate request
Create a public key for the "automation" user:
root@control:/usr/local/scripts# ssh-keygen -t rsaAdd the public key to the router:
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /usr/local/scripts/cisco-automation.key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /usr/local/scripts/cisco-automation.key.
Your public key has been saved in /usr/local/scripts/cisco-automation.key.pub.
The key fingerprint is:
The key's randomart image is:
ip ssh pubkey-chain
(paste in your pub key max 254 characters per line, so you will need to split it)
copy the keys into the id_rsa and ird_rsa.pub file of the user that will run the script
cat cisco-automation.key > /root/.ssh/id_rsacat cisco-automation.key.pub > /root/.ssh/id_rsa.pub