Validate type of given ssh key

Change-Id: Icf14cc3923913cdc7558fd6c797d26021b3935c9
Fixes: rhbz#1022477
Merge "Validate type of given ssh key"