HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Script Issue

 
UniRock
Regular Advisor

Script Issue

Hello All,

I have few servers and their IP addresses.
Ideally password for all servers should be same for a particular user but few servers might have an unknown passwd for that user.

I want to create a script that will log in to each server one by one (which ever is possible) using same username and passwd and take details like hostname etc.

Is that possible?

I searched and looks like expect may do it some part of it.

Any suggestions are most welcome.

Thanks..
1 REPLY
Steven Schweda
Honored Contributor

Re: Script Issue

Any reason not to use SSH? Once you get SSH
public-key authorization set up, you can stop
worrying about storing passwords in "expect"
scripts. (And if you're not worrying about
that now, then perhaps you should start.)
With SSH public-key authorization, no one
even cares what a user's password is.

Dozens of old threads describe how to
configure SSH keys.