Solved

Linux Ssh key pair

Posted on 2012-04-09
1
499 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

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.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

740 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