I have installed sshpass on my server where Jenkins is running using
sshpass
sudo apt-get install sshpass
I also have restarted the Jenkin