Add test to make sure keys generated by ssh module are valid

Make sure they are key pairs in RSA format.