Using Ssh keys in linux

Posted on 2006-04-06
Last Modified: 2010-03-18
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.
Question by:expertblr
    LVL 3

    Accepted Solution

    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.

    Author Comment


    Thanks! Excellent URL...:)

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now