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.