Solved

Setting up a SSH connection

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
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.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

910 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

21 Experts available now in Live!

Get 1:1 Help Now