How to use a dedicated SSH key for the repository

(Dmitry Fedyuk) #1

Step 1. Generate an SSH key

cd ~/.ssh && 
ssh-keygen -t rsa -f ~/.ssh/ -C "the key name"

Do not set a passphrase for it.

Step 2. Assign the SSH key to the domain

Do it in the ~/.ssh/config file (create it if absent):

  IdentityFile ~/.ssh/

Step 3

If you have create a new ~/.ssh/config file on the previous step, then you should set the proper filesystem permissions for it:

chmod 600 ~/.ssh/config

Otherwise, you will get the «Bad owner or permissions on ~/.ssh/config» failure on the composer require step (step 8 of the installation process).

Step 4. Register this SSH key in the repository

Copy the contents of the file and paste it to your account in the repository.


The special installation steps for the repository