Test if SSH private key has password protection
If you execute:
ssh-keygen -y -f ~/.ssh/name_of_key
you will get key printed if there is no password like this:
ssh-keygen -y -f ~/.ssh/id_dsa
ssh-dss AAAAB3NzaC1kc3M....
If there is password of the key you will be asked for it
If you open the private key file in text editor you will be able to see ENCRYPTED
in the second line of the RSA/DSA key file.
For example:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,373B504621779D53C72BADE597C531A0