5
Keypair Generation
MagicBot edited this page 3 years ago
Generating Keypairs
MagicBox comes supplied with a read-only deployment key which allows it to pull changes from the repo. Users must not use this key outside of MagicBox.
- A keypair can be used to authenticate with the repo instead of a password.
- This same keypair can be used for ssh authentication in bare metal Magicbane deployments.
From your home directory (GitBash can be used in Windows installs) Select the defaults for passphrase and location.
ssh-keygen -t rsa
Copy the complete public key to your clipboard
cat .ssh/id_rsa.pub
Under Settings add your new SSH public key.
Now that we have our keypair installed let's just reclone.
# For Bare Metal MagicBane configurations
$cd magicbane/build/
$rm -rf Server
$git clone git@63.141.251.154:MagicBane/Server.git-rf Server
$git remote -v
origin git@63.141.251.154:MagicBane/Server.git (fetch)
origin git@63.141.251.154:MagicBane/Server.git (push)
$cd ..
$./mbbuild.sh
Magibane should now build using your new ssh key.