Cannot use a git repository with ssh, if the key is password-protected.
$# Set password for ssh key:
$ ssh-keygen -p -f ~/.ssh/id_rsa
Key has comment '/var/lib/jenkins/.ssh/id_rsa'
Enter new passphrase (empty for no passphrase): ***
Enter same passphrase again: ***
Your identification has been saved with the new passphrase.
$git remote -v
origin ssh://firstname.lastname@example.org/repo (fetch)
origin ssh://email@example.com/repo (push)
Trying to save any config change:
SCM Sync status :
Wed Jan 27 17:22:04 CET 2016 : Error while checking in file to scm repository
SEVERE: [checkinFiles] Problem during SCM commit : Permission denied (publickey).
fatal: Could not read from remote repository.