Add ssh authorization to push to and pull from the Engine ML git server.
If you do not have an ssh public/private key pair, generate one
Keys are associated with your user and they must be unique (i.e. don't share your private keys).
engine user add-key ~/.ssh/id_rsa.pub Successfully added key: ~/.ssh/id_rsa.pub The following entry should be prepended to your ~/.ssh/config: Host git.my-org.engineml.com IdentityFile ~/.ssh/id_rsa.pub User git
If you attempt to add a private key, the key will be rejected.
engine user add-key ~/.ssh/id_rsa Usage: engine user add-key [OPTIONS] PUBLIC_KEY_PATH Error: Invalid value for "public-key-path": This is a private key!
You can validate that your credentials are working by attempting to ssh into the Engine ML git server. If you are successfully authenticated, you will see the message below.
ssh -i ~/.ssh/id_rsa firstname.lastname@example.org PTY allocation request failed on channel 0 Welcome to Engine, User! Connection to git.my-org.engineml.com closed.
If did not add your key, you will see a message like this.
ssh -i ~/.ssh/bad_key.pem email@example.com firstname.lastname@example.org: Permission denied (publickey).