Solved

Setting up a SSH connection

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
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 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ā€¦

734 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