Update 'Keypair Generation'
@@ -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`
|
||||
|
||||

|
||||
|
||||
Under Settings add your new SSH public key.
|
||||
|
||||

|
||||
|
||||
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)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user