Hi All,

I want to write a script to ssh number of servers on run some commands
and get the output in a text file.

My limitations are given below:

1.  I can't use public key authentication.
2.  I can't install sshpass or expect package on that server.
3.  No spawn command available.
4. Can't install any other package on server.
5. All servers are REDHAT 5.5

As per my view, only option left is that, I write a bash script who
pick up username,
ip address and password from a different file.

I am not getting by a lot of searching, how to pick up password from a
file for ssh command.
or ssh command automatically pick up username, IP address and
password from a different file.

My main issue is how to pickup password for ssh command from a different file.
We can use a variable for password because password of all servers are same.

Any help or idea will be thankful.

Regards
Amit Bondwal

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to