Generate Ssh Key For Acquia

autokey-acquia.sh

startup disk creator mac download To generate an SSH private/public key pair using the ssh-keygen command and then copy the public key to your clipboard for use, complete the following steps: On your local computer, open a command-prompt window. Ensure you do not already have a public key saved to your computer. Nov 04, 2014 How to generate a SSH key on Windows and set it up with Acquia Cloud. How to import a local Drupal site into Acquia Dev Desktop. Google Cloud ssh key generation for your instance. Sep 26, 2019 Generating an SSH key. To generate an SSH key with PuTTYgen, follow these steps: Open the PuTTYgen program. For Type of key to generate, select SSH-2 RSA. Click the Generate button. Move your mouse in the area below the progress bar. When the progress bar is full, PuTTYgen generates your key pair. Type a passphrase in the Key passphrase field. Now, When I store the content of private key in a file and trying to validate it with putty it says invalid format of private key. Could you guys help me out on this, some how I missing the private key format so putty is not recognizing it. 7:32How to generate a SSH key on a Mac and set it up with Acquia Cloud 5:20 How to generate a SSH key on Windows and set it up with Acquia Cloud 4:17 How to create a Drupal site on Acquia Cloud Free and sync it with Dev Desktop to work locally.

Generate Ssh Key For Acquia Free

#!/bin/bash
# Acquia
CLOUDAPI_ID='id'
CLOUDAPI_KEY='key'
DOCROOT='docroot'
CREDS='${CLOUDAPI_ID}:${CLOUDAPI_KEY}'
ssh-keygen -q -b 4096 -t rsa -N '' -f ./script.key
PUBKEY=`cat ./script.key.pub`
RESPONSE=`curl -s -u $CREDS
-X POST --data-binary '{'ssh_pub_key':'${PUBKEY}'}'
https://cloudapi.acquia.com/v1/sites/'${DOCROOT}'/sshkeys.json?nickname=script`
TASKID=`echo $RESPONSE
grep -o ''id.*'
grep -o '[0-9]*'
grep -m 1 '[0-9]*'`
STATUS='null'
until [[ $STATUS=~ ^errordone$ ]];do
STATUS=`curl -s -u $CREDS
https://cloudapi.acquia.com/v1/sites/'${DOCROOT}'/tasks/'${TASKID}'.json
grep -o 'state.*'
grep -o '[a-z]*'
sed -n 2p`
echo'ADDING SSH KEY: ${STATUS}'
sleep 5
done
SSHID=`echo $RESPONSE
grep -o 'sshkeyid.*'
grep -o '[0-9]*'
grep -m 1 '[0-9]*'`
# Do remote work over ssh here..
curl -s -u $CREDS -X DELETE
https://cloudapi.acquia.com/v1/sites/'${DOCROOT}'/sshkeys/'${SSHID}'.json
-o /dev/null
rm -rf ./script.key*
autokey-github.sh
#!/bin/bash
# Github
TOKEN='your-token'# must have admin:public_key for DELETE
ssh-keygen -q -b 4096 -t rsa -N '' -f ./script.key
PUBKEY=`cat ./script.key.pub`
RESPONSE=`curl -s -H 'Authorization: token ${TOKEN}'
-X POST --data-binary '{'title':'nr@blackhole','key':'${PUBKEY}'}'
https://api.github.com/user/keys`
KEYID=`echo $RESPONSE
grep -o ''id.*'
grep -o '[0-9]*'
grep -m 1 '[0-9]*'`
echo'Public key deployed to remote service.'
# do some work here
sleep 10
curl -s -H 'Authorization: token ${TOKEN}' -X DELETE
https://api.github.com/user/keys/${KEYID}
-o /dev/null
echo'Public key removed from remote service.'
rm -rf ./script.key*
Key

Acquia Generate Ssh Key

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment