SSH Keys Help

Hello,
I'm wondering if anyone has a step-by-step instruction set for setting up ssh keys? I've gone through many of the manuals online (most seem to be from the same source) and it's a little bit unclear when the documentation is talking about the server versus the client machine. I'm missing something in my translation of the guides.

I'd ideally like to be able to run ssh from one machine to another without being prompted for a password. (Automation in a script to be run every few hours.)

I'm using Redhat 9 as well as MacOSX. My apologies if this belongs under a different section.

Thanks in advance for help/tips anyone can offer.

-Sys

Update!

I of course did a little more digging after posting this and found a solution that seems to be working for me. It was another how-to, but a very simple one that was easier for me to follow.

http://www.arches.uga.edu/~pkeck/ssh/

There is a link to the guide I used. Below is the note I made up afterwards for my own future reference. Hopefully this may help someone else running into the same confusion I was:

SSH Key How-To

Client tasks:
ssh-keygen -t dsa
cp id_dsa.pub authorized_keys2

Then copy the authorized_keys2 to file to the .ssh directory of the user you will
be using for ssh access, on the server you will be accessing. For example "/home/sysera/.ssh/authorized_keys2".

Then perform this command on the client to start the ssh-agent on the client machine:
ssh-agent sh -c 'ssh-add < /dev/null && bash'

This will open a new bash shell. From this shell you should be able to access the server machine
without being prompted:
ssh servername

Note: I also have not been prompted for the password after logged out of the current bash session and starting a new one.

I now feel a little silly with this being solved, seemingly so simply, but the entire subject did seem to completely baffle me in the past when I tried to broach it.

Thanks!

-Sys