How to create shell script for ssh login

How to create shell script for ssh login with password.....?

Tags: Shell Script SSH
user image Author :   gibbson
0

First install sshpass

yum install sshpass -y

Then you can create shell script like bellow

#!/bin/bash
sshpass -p "PASSWORD" ssh -o StrictHostKeyChecking=no user1@192.168.7.212
user image
piraisudanrajendran October 11, 2017
Add comment