Solved

Setting up a SSH connection

Posted on 2008-06-18
2
623 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
[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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

705 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