• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

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.
1 Solution
The keys should be only good for one user .  They should be put in ~/.ssh/id_rsa.pub  (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.
expertblrAuthor Commented:

Thanks! Excellent URL...:)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now