How can I use Jenkins to SSH into an EC2 Instance with a private key pem file which is password protected

Viewed 6858

My aim is to execute shell commands on an EC2 instance as part of Jenkins job.

So I'm trying to SSH into an EC2 Instance with a private key pem file which is password protected from Jenkins build job, what are the ideal ways to do that?

2 Answers
Related