[CentOS] automated stopserver & shutdown?

Mon Nov 17 06:17:01 UTC 2014
Hadi Motamedi <motamedi24 at gmail.com>

> A simple script which loops though a text file that lists the hostname /
> username / password for the login and then runs the "shutdown - h now"
> command? Though, I would be uneasy with listing root passwords in a
> random text file.
>

Thank you for your help . So how to open a session with another server
to login with root password and issue a command on it ?