Question: I am developing a Location-based J2ME app & in that I'm using RMS to store data. 

In `RecordStore` when I delete any record, the underlying records doesn't get re-indexed. For example, if I have 5 records & I delete record no.2 then record ids will be {1, 3, 4, 5}. But I want record ids after deletion to be {1, 2, 3, 4}. How should I do this??? Because recordId is playing an important role in my app to retrieve & update the record.

Answer: 
Have you tried logging in as the jenkins user?

Try this:

```
sudo -i -u jenkins #For RedHat you might have to do 'su' instead.
git clone git@github.com:your/repo.git

```

Often times you see failure if the host has not been added or authorized (hence I always manually login as hudson/jenkins for the first connection to github/bitbucket) but that link you included supposedly fixes that.

If the above doesn't work try recopying the key. Make sure its the pub key (ie id\_rsa.pub). Maybe you missed some characters?
According to this [article](https://help.github.com/articles/error-permission-denied-publickey), you may try following command:

```
   ssh-add -l

```

If your key isn't in the list, then 

```
   ssh-add /var/lib/jenkins/.ssh/id_rsa_project

```