Went through a lot of questions, but nothing seems to be solving my issue. Or to be more precise I am not sure if I am doing the whole thing correctly. So here it is:
Ha
1 change user jenkins login setting
vi /etc/passwd
update /bin/false to /bin/bash
2 su - jenkins
jekins user home would be /var/lib/jenkins
3 ssh-keygen
cat .ssh/id_rsa.pub
copy this key to bitbucket
4 ssh git@bitbucket.org
this is going to set the bitbucket ssh key in .ssh/known_hosts
Now you should be able to access