Solved

Linux Ssh key pair

Posted on 2012-04-09
1
492 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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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.

763 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

13 Experts available now in Live!

Get 1:1 Help Now