Solved

Linux Ssh key pair

Posted on 2012-04-09
1
495 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
1 Comment
 
LVL 22

Accepted Solution

by:
chakko earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
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…

867 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

16 Experts available now in Live!

Get 1:1 Help Now