git clone on remote server (bitnami)

1. Find the .ssh directory
-make sure always use absolute

$ cd /home/bitnami/.ssh

 

2. Generate public and private keys on the server

ssh-keygen

 

3. Copy the public key to your repo settings (bitbucket/github)

$ cat id_rsa.pub

 

4. Try and clone the repo into the server!

$ git clone git@bitbucket.org:username/project-name.git

If your getting permission denied, make sure you have write permission to the folder.

Advertisements