From b33ba1aa688a762d871b5c6da9273b7fb406f195 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 9 May 2022 07:44:51 +0000 Subject: [PATCH] Update 'Keypair Generation' --- Keypair-Generation.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Keypair-Generation.md diff --git a/Keypair-Generation.md b/Keypair-Generation.md new file mode 100644 index 0000000..efd2043 --- /dev/null +++ b/Keypair-Generation.md @@ -0,0 +1,31 @@ +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) + +`ssh-keygen -t rsa` + +Select the defaults for passphrase and location. + +`cat .ssh/id_rsa.pub` + +![SettingsMenu](https://cdn.discordapp.com/attachments/534260038039109632/973124781614452736/unknown.png) + +Under Settings add your new SSH public key. + +![ManageKeys](https://cdn.discordapp.com/attachments/534260038039109632/973125791430881290/unknown.png) + +Now we need to tell our Magicbane instance to pull via ssh. + + +```console +$cd magicbane/build/Server +$~/mb_dev/build/Server$ git remote -v +origin http://repo.magicbane.com/MagicBane/Server.git (fetch) +origin http://repo.magicbane.com/MagicBane/Server.git (push) +``` +