0

How to create shell script for ssh login

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

Shell Script SSH Add a comment
gibbson
asked Oct 10 2017

Answer

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
Add a comment
piraisudanrajendran
asked Oct 10 2017
edited Oct 05 2018
Post your Answer