Recent Changes - Search:


Code:


Social:


My journals will take the place of a blog. If you go to the Journal page there is an RSS feed to subscribe with.

(:blogcal group=Journal:)


Sites I take responsibility for

West Volusia, Florida

Documents

Technical

General

Me

Living

Places I frequent

Hobbies

Humor

Items for sale:


Clipboard

edit SideBar

How to log in to Amazon EC2 using PEM format from SecureCRT

Include our styles below Infobox - invoke as >>infobox<< ... >><<

Codebox: - invoke as >>codebox<< ... >><<

warnbox: - invoke as >>codebox<< ... >><<

editingbox: - invoke as >>codebox<< ... >><<

noticebox: - invoke as >>codebox<< ... >><<

Page bread crumbs: Main - MyPublicTechnicalNotes - SoftwareAndOperatingSystems - Software - SecureShell - SecureCRT - HowToLogInToAmazonEC2UsingPEMFormatFromSecurCRT

Pages by tags: (:listtags:)
Subscribe to this wiki: RSS Feed RSS or subscribe to this page for changes: RSS Feed RSS
496 articles have been published so far. Recent changes
(:addThis btn="custom":)

2016-03-22: This site is being moved to my main site at https://kevininscoe.com/wiki as part of a consolidation to one domain.


SecureCRT requires both a private and a public key. Use the supplied key.pem file from EC2 here as your private key only in Windows for SecureCRT rename it to "key." with no file type. Copy this down to a directory on your local Windows machine use it as Your Identity file in SCRT. Now we need a public key. You can create that below by following the bellow steps. Make sure that file has the same name as key. but ends in file type .pub so in other words key.pub. Save that also to your Windows PC in the same directory as the private key file "key.". Note the name does not have to be "key" but both have to be named the same except for the file type.

SecureCRT 6.2 and above:

Support for Amazon EC2 keys has been implemented in SecureCRT 6.5 beta 2 and later.

To use the Amazon EC2 private key:

  1. Create an SSH2 session
  2. Specify PublicKey as the authentication method in Session Options / SSH2
  3. Set the Amazon EC2 key as the private key to use for the session
    1. Select PublicKey in Session Options / SSH2
    2. Click the Properties button
    3. Select Use session public key setting
    4. Browse to or enter the path to the EC2 private key in the entry box under Use identity or certificate file
  4. Connect to the EC2 server

Older versions of SecureCRT (I used 5.5.3 for example):

With access to OpenSSH either via Linux, unix or Cygwin:

(:code header=Output from make install lang=Bash wrap=80:)

 $ cp ec2-key.pem "ec2-key." # Copy for use as private key in SCRT

 $ ssh-keygen -p -f "ec2-key." # Remove the passphrase if there is one

 $ ssh-keygen -e -f "ec2-key." > ec2-key.pub # Create the public key file

(:codeend:)

Now copy the private key file "ec2-key." and the public key file "ec2-key.pub" file to your PC in the directory used by SecureCRT or a new location. In my case I store AWS keys in C:\aws. It is impertive you save the private key file on the PC with only a dot "." at the end or SCRT will fail to recognize it. In SCRT set the SSH->PublicKey->Properties->"Use identity" to the file "/path/to/ec2-key.". Set user as root (typically some images have non-root log-ins such as "ec2-user"). Once you login use the "sudo bash" command to gain privileges).

Using OpenSSH:

No conversion is needed with OpenSSH

 $ ssh -i /path/to/ec2-key.pem root@ec2-instance-ip

Notes:

http://forums.vandyke.com/showthread.php?t=4063

http://docs.amazonwebservices.com/AmazonEC2/gsg/2007-01-03/running-an-instance.html

http://docs.amazonwebservices.com/AmazonEC2/gsg/2007-01-03/putty.html

http://forums.vandyke.com/showthread.php?t=2185&highlight=amazon

http://stackoverflow.com/questions/1454629/aws-ssh-access-permission-denied-publickey-issue

https://forums.aws.amazon.com/message.jspa?messageID=103726

https://help.ubuntu.com/community/EC2StartersGuide

https://forums.aws.amazon.com/message.jspa?messageID=103726

http://aws.amazon.com/articles/1233

http://forums.vandyke.com/showthread.php?t=5332


Kevin's Public Wiki maintained and created by Kevin P. Inscoe is licensed under a
Creative Commons Attribution 3.0 United States License.

Back to my web site - http://kevininscoe.com

Edit - History - Print - Recent Changes - Search
Page last modified on May 14, 2013, at 09:33 AM EST