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
votes
1 Answers
2
votes
Follow next simple steps:
From JMeter SSH Sampler Releases page:
- Download latest version of
ApacheJMeter_ssh-x.x.x.jarand drop it to /lib/ext folder of your JMeter installation - Download
jsch-x.x.x.jarand drop it to /lib folder of your JMeter installation
- Download latest version of
- Restart JMeter to pick the jars up
Add
SSH CommandSampler to your Test Plan - there will be "Client certificate" input section where you can specify private key and password if needed
See How to Run External Commands and Programs Locally and Remotely from JMeter guide for more detailed information on the topic.
