Solved

Setting up a SSH connection

Posted on 2008-06-18
2
600 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
Comment Utility
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
Comment Utility
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

762 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