How can I connect to my instance

Teradata Database on AWS
Teradata Employee

How can I connect to my instance

How can I connect to my database instance?

2 REPLIES
Teradata Employee

Re: How can I connect to my instance

You can use the ssh command to connect to your EC2 instance. In order to do so, you need the following:

  • The public key file (.pem)
  • Public IP address of the instance
  • The user name you need to use is ec2-user
  • From the command line, use the following command to connect to your instance
ssh -i “[/path/to/your/publicKey]” ec2user@[Public_IP_address_of_your_instance]

For example:

•ssh -i “/tmp/myKey.pem” ec2-user@123.4.5.6
Teradata Employee

Re: How can I connect to my instance

Instructions for PuTTy

Before you begin, please make sure that you have the following: putty, puttygen, pem file, and the public IP address to your instance.

  1. First, you need to convert your pem file to ppk file by following:
  2. Open “puttygen
  3. From the menu bar, click on Conversions -> Import Key
  4. Select your pem file from the browser and click Open
  5. Under “Actions,” click on “Save private key” and save your key in ppk format
  6. Now open “putty” from your desktop
  7. From the Category on the left side, click on “Session
  8. Fill out the Host Name with the Public IP address of your instance and set the port to 22
  9. Locate to SSH -> Auth from the Category and set the private key with the one you saved from step 6 
  10. Click Open
  11. You should login as: ec2-user


Instructions for SecureCRT

  1. From the AWS Dashboard, locate to EC2 -> Instances
  2. Copy and paste the “Public IP” of the instance you want to connect to
  3. Open SecureCRT from your computer
  4. Start the New Session Wizard by pressing ALT + N or by clicking on the “New Session” icon from the Session Manager
  5. From the New Session Wizard, choose “SSH2” and click Next
  6. Fill in the following and click Next:

    Hostname: Public IP address you copied from step 2

    Port: 22

    Username: ec2-user
  7. Set the SecureFX protocol as SFTP and click Next
  8. Give a name to the session and put it as the Session Name. Click Finish
  9. After the New Session Wizard closes, find your instance from the Session Manager, right click, and then click on Properties
  10. From the Category, click on SSH2
  11.  
  12. Under Authentication, ONLY SELECT the PublicKey
  13. Click on PublicKey and click Properties
  14. From PublicKey Properties, choose “Use global public key setting” and “Use identify or certificate file
  15. Locate the pem file from your desktop and set it under “Global settings
  16. Click “OK” to go back to the SSH2 settings window
  17. Look for the “Key exchange” section and check all the ones that contain “diffie-hellman” in the name
  18. Click OK to close the window
  19. Find your session from the Session Manager and double click it to connect to your instance

From the Command Line on a Linux system outside of the AMI environment

ssh -i keyfile.pem ec2-user@<public_dns_name>