Setup a New BitBucket User on Windows

1. Create a new SSH key. Here we call it id_rsa, which is the default, but you can give it any name you want.

ssh-keygen %HOMEPATH%/.ssh/id_rsa 

2. Use PuTTYgen to create a private PuTTY key id_rsa.ppk, from id_rsa.


3. Create a new BitBucket account.

4. Click on the Manage Account button on the top right.

Bitbucket Manage Account








5. Click on SSH keys on the left, then on the Add key button.

Bitbucket SSH Keys








6. Copy the contents of id_rsa.ppk and paste it into the Add SSH key dialog.

7. Clone the Git repo with TortoiseGit using the PuTTY key id_rsa.ppk.

Testing cron Jobs

1. Use crontab -e when possible when editing your cron table. It validates the entries on save.

2. Redirect output to a log file. For example:

 * * * * *  /path/ &> /path/script.log    

3. Run your script manually under the same user used in crontab.

4. If you are using run-parts (cron.daily, cron.hourly, etc), you can manually run run-parts.

run-parts /etc/cron.daily    

5. If you are not using run-parts and putting cron jobs directly in crontab, you can change the cron schedule. For example, instead of running the job daily, run it every minute for testing purposes.

6. Monitor the cron log file. Here is tailing the log in CentOS.

tail -f /var/log/cron    

7. Here are many possible reasons why crontab does not work.