Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Linux Ssh key pair

Posted on 2012-04-09
1
Medium Priority
?
504 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

610 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