?
Solved

Linux Ssh key pair

Posted on 2012-04-09
1
Medium Priority
?
503 Views
Last Modified: 2012-04-09
I'm really confused about RSA keys and using them to ssh from one machine to another without password.  I'm using UNIX/Linux on both machines.

I have 2 servers.  I want server 1 to ssh into server 2 without password using public/private keys.  I don't want server2 to ssh into server1.  It's just one way.

Where do I generate the key that the other server gets?  Server 1 or Server 2 and why?

I'm using ssh-keygen.  Some sources say to generate the key on Server 1 and other on Server  2.  Which is it?
0
Comment
Question by:lcor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
chakko earned 2000 total points
ID: 37824645
I have done this for Windows based client to Linux host.

This page has good instructions and may help you with your task.

http://www.howtoforge.com/ssh_key_based_logins_putty

you need to put the public key into the authorized_keys2 file on the linux server, you can control which server the access is allowed.  So just edit the file for the server you want to access.
Note:  the name of the file may be different for your linux, but it should be located in the same location.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

801 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