[ssh] add function to simplify ssh rsa key generation