(See title)
The best option is to use SSH keys; Bitbucket have a great help page here. If you follow the Linux instructions it should all work fine.