Thanks much! Im all set.
RESOLUTION (ssh method):
Here's what I did...
First I ssh'd from each machine to each other one. (The first time u ssh to new machine it asked you to accept the machines "fingerprint" and saves it -- this is just so they know who eachother are.
Then on the machine I wanted to be able to shutdown FROM I did
ssh-keygen -t rsa
and accepted the default location. (/root/.ssh/id_rsa)
I left the passphrase blank, so it would not be required.
Then basically you just need to copy that "id_rsa" file onto the DESTINATION machine, in the same directory, but named as "authorized_keys". Which can easily be done like this:
scp id_rsa.pub xxx.xxx.xxx.xxx:/root/.ssh/authorized_keys
Where xxx.xxx.xxx.xxx is the IP address or host name of remote machine.
NOTE: You may want to check if a file by that name already exists, on the remote machine, because the above command will overwrite it without warning. -- If you aleady have a file by that name on the remote machine, I would suggest using comand above, but change the file name. Then on the remote machine, append the file you just copied to the existing one. This could easily be done like this: (there may be an even simpler way - but this is what I know)
mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.backup
cat /root/.ssh/authorized_keys.backup /root/.ssh/yourfilename > /root/.ssh/authorized_keys
Then make sure the /root/.ssh/authorized_keys file has 600 permissions.
chmod 600 /root/.ssh/authorized_ keys
Then try to ssh to the remote machine.
And if it works like it did for me -- it will let you right in, with no username or password. If this works correctly, you should be able to remotly run commands through ssh within scripts.