In my cPanel user files, I'm using a private BitBucket repository.
In order to connect to it, I have created an SSH public/private key pair using the cPanel user interface so I can use them as a way to connect to my remote repository.
The problem is that I wasn't able to connect to the remote repo usng ssh keys, so after I googled a lot, I found that my ssh-agent is not loaded so I used:
Then it asks me the password for the private key and only after these I'm able to use my repository (push/pull..). And everytime I need to update my repo (ex. to pull the latest changes) I need to exececute those commands to start the ssh-agent and then to add the private key as an identity to it.
How can I skip this manual start of ssh-agent .. or in the end I just wanna use my repo through ssh keys.
In order to connect to it, I have created an SSH public/private key pair using the cPanel user interface so I can use them as a way to connect to my remote repository.
The problem is that I wasn't able to connect to the remote repo usng ssh keys, so after I googled a lot, I found that my ssh-agent is not loaded so I used:
Code:
eval `ssh-agent -s`
ssh-add ~/.ssh/myCustomPrivateKey
How can I skip this manual start of ssh-agent .. or in the end I just wanna use my repo through ssh keys.
Last edited by a moderator: