Solved

Setting up a SSH connection

Posted on 2008-06-18
2
619 Views
Last Modified: 2012-08-13
Im pretty new to SSH and havent really setup a connection before and was hoping to find some guides.  I was searching online but nothing really gave me what I was looking for.
What Im trying to do is setup an SSH connection using putty as the client to a Linux machine (VMware ESX).  I plan on using it in conjunction with plink so that I can use it to power off the Linux box in the event of power failure.  I dont want to type the password in the plink connection for security reasons, Id want to have it setup to authenticate with certificates.  Im not exactly sure how to setup the Linux box to use a certificate for it.
If youd like I can list the steps I have taken so far but Im not entirely sure how well it is setup and would prefer a guide on from start to finish or if someone could point me in a the direction of a good how to I would greatly appreciate it.
Thanks,
Joe
0
Comment
Question by:DCTIT
2 Comments
 
LVL 9

Accepted Solution

by:
sda100 earned 350 total points
ID: 21818644
Hi there,

The easiest way is to install WinSCP (http://winscp.net/eng/index.php) as it also installs some key tools which Putty can use.

Then from the "Start" menu, choose "Programs-->WinSCP-->Key Tools-->PuTTYgen"

In PuTTYgen, select the type of key as "SSH-2 RSA", then click the "Generate" button, and move the mouse around the window a lot.

After the key pair has been generated, you can set a password on it (optional).  It means that before anyone can use the private key they have to enter the password.

Use the "Save private key" button to save the key to a file, probably into "My Documents".

Copy/Paste the text of the "Public" key (top of window), into an authorised_keys file of the relevant user on the target system, probably "$HOME/.ssh/authorized_keys" (append the file if it already exists).

Now, from the "Start" menu, choose "Programs-->WinSCP-->Key Tools-->Pageant".  Right-click the systray icon and choose "Add key".  Select the private key you saved earlier.  It will prompt you for a password if you set one earlier.

All done!  To make a connection with Putty (whilst Pageant has the key loaded), just enter the username when asked, and they key will be supplied automatically.  You can even set the username in Putty so you don't even have to type it.

Well, give this lot a go, and if you get stuck, please post back.

Steve :)
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 150 total points
ID: 21818872
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:

828 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