Use sshpass on Amazon linux2

Use sshpass on Amazon linux2

Overview

When using sshpass on Amazon Linux 2, it took some time to activate the EPEL repository, so I will explain the procedure.

procedure

1. Install the EPEL release package for RHEL 7 and enable the EPEL repository.

sudo amazon-linux-extras install epel -y
sudo yum-config-manager --enable epel

2. Install sshpass

sudo yum install -y sshpass

3. sshpass settings

sshpass -p {password} ssh {user name}@{SSH destination}

reference

--How do I enable the EPEL repository for an Amazon EC2 instance running CentOS, RHEL, or Amazon Linux? --Install sshpass

Recommended Posts

Use sshpass on Amazon linux2
Use Numpy, Scipy, scikit-learn on Amazon Linux
Use Github Desktop on Linux
Put jenv on Amazon Linux
Install tomcat 5.5 on Amazon Linux.
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Use Linux on Windows 10 (WSL2)
Use host.docker.internal on linux (docker-compose required)
Install Python Pillow on Amazon Linux
Install oracle java8 on amazon linux2
Install pyenv on EC2 (Amazon Linux)
Use Chrome Remote Desktop on Linux
[Note] Install Imagick on Amazon Linux2
[Note] Run Django on Amazon Linux 2
Run docker-compose on Amazon Linux2 on ARM64
Introduce Python 3.5.2 environment on Amazon Linux
Use Linux commands on Android devices
Run cron on Amazon Linux (set on Linux)
Why use linux
I want to use Linux on mac
Build an LNPP environment on Amazon Linux 2
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
Run Keycloak on Amazon Linux 2 without Docker
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Jupyter Notebook Settings-How to use (EC2 Amazon Linux 2)
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Daemonizing processes on Linux
jblas on Arch Linux
Linux (WSL) on Windows
NAT router on Linux
Use pyvenv on Windows
Develop .NET on Linux
Wake on lan on Linux
OpenVPN Summary + Amazon Linux2
Monitor traffic on Linux
Update vscode on linux
Use Ansible on Windows
Try NeosVR on Linux
Use QuTiP on Windows
Use pip on Windows
Check capacity on Linux
LiveUSB creation on Linux
Linux operation on Win10
How to use C216 Audio Controller on Arch Linux
Publish your Django app on Amazon Linux + Apache + mod_wsgi
Preparing to use Ansible on an existing Linux server
Compile and install MySQL-python for python2.7 on amazon linux
[AWS EC2] How to install Maven on Amazon Linux 2
[Tips] How to use iPhone as webcam on Linux
How to build a Python environment on amazon linux 2
Announcing the availability of Java 11 LTS on Amazon Linux 2
[AWS] How to expand disk space on Amazon linux
NTP configuration memo on Linux
Install Minecraft on Arch Linux
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Try running Amazon Linux 2 on-premises (VM on your local PC).
Use matplotlib on Ubuntu 12 & Python
Install Linux on your Chromebox
Downgrade Mcomix on Arch Linux