sshpass, aws, amazon linux 2,

Install Sshpass on Amazon Linux 2

Nov 07, 2022 · 1 min read · Post a comment

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpass on Amazon Linux 2.


  • Amazon Linux 2
  • sudo privileges

Install sshpass on Amazon Linux 2

Step 1. Install EPEL.

sudo amazon-linux-extras install epel

Step 2. Enable EPEL.

sudo yum-config-manager --enable epel

Step 3. Install sshpass.

sudo yum install sshpass


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.