Home > bash, BashScripts, HowTo, Linux > SSH Automatic Login

SSH Automatic Login

September 8th, 2011 Leave a comment Go to comments

SSH Automatic Login

Well I am tired of entering my password 100 times a day, are you too?
The solution I wrote this script using the powerful expect
download expect

I actually use a more complex script since our root password is never the same
for each server but this simple example should be useful for a lot of people.

Also I used a similar script to this one to go in 100s of server and automticaly
perform tasks, like changing password, adding a user, fixing something,etc…

Here is the bash script that calls the various expect scripts:

Here is the script:

Its simple to have a bash script calling this expect script passing
the required arguments, <servername> <rootpass>

Hope its useful for someone out there



Here is the expect script:
  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*