1
votes

I’m trying to execute a Linux command from my local windows server to remote EC2 instance using Jmeter ssh sampler plug in ,what is the way to connect to ec2 with my private key file and send the command?

1

1 Answers

2
votes

Follow next simple steps:

  1. From JMeter SSH Sampler Releases page:

    • Download latest version of ApacheJMeter_ssh-x.x.x.jar and drop it to /lib/ext folder of your JMeter installation
    • Download jsch-x.x.x.jar and drop it to /lib folder of your JMeter installation
  2. Restart JMeter to pick the jars up
  3. Add SSH Command Sampler to your Test Plan - there will be "Client certificate" input section where you can specify private key and password if needed

    JMeter SSH Sampler

See How to Run External Commands and Programs Locally and Remotely from JMeter guide for more detailed information on the topic.