I have a command something like ssh @*. When I execute this command in CMD it asks for password and upon entering the password, the connection will be successful. Please help me how can I handle this using os process sampler
0
votes
1 Answers
0
votes
I don't think you cannot handle this using ssh
command as it doesn't allow providing the password as the parameter, it can only open an interactive shell which is not supported by the OS Process Sampler.
So instead of ssh
client you need to consider the following alternatives:
- Use key-based authentication so you won't have to provide the password
- Use
sshpass
command - Use
expect
command - Switch to SSH Command sampler which allows execution of arbitrary commands over SSH channel, it supports both password and key-based authentication mechanisms, see How to Run External Commands and Programs Locally and Remotely from JMeter article for more details