Glad to see a response.
This is the scenerio:
Hostname : host1, host2, host3
(Username has same password on all the server

Username: user
Password for user: password
Different host has different root passwords
Host:host1 - root password host1
Host:host2 - root password host2
so it would be like
ssh -l <user> host1
after giving password
su -
<root password>
command
command
exit
Will this make any sense?
Thanks again