Using Ssh keys in linux

Hi experts,

            I have created ssh public and private keys using 'ssh-keygen -t rsa'. Say, suppose I've generated these keys on Machine 'B' and I want to connect to Machine 'A' using ssh, what should I do? I want to connect to machine 'A' as root and I should not be prompted with a root password.

Also, Please tell me how this SSH keys concept will work?

FYI: Both Machine 'A' and Machine 'B' are Redhat Linux 9.0.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The keys should be only good for one user .  They should be put in ~/.ssh/  (or something like it).  

Also take a look at keychain and it's uses at:

This gives great explaination of how it all works and how you can make it passwordless.  It's up to you if you want to do it for root or not.  If you walk away from your computer a lot without locking it I'd say no to root.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
expertblrAuthor Commented:

Thanks! Excellent URL...:)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.