• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

securitywing

3 Steps to setup SSH remote Access to EC2 from Cloud9

by wing

When you need to connect securely to  an already running EC2 instance via SSH from a Cloud9, you need to prepare
the instance for Cloud9. AWS Cloud9  generate a SSH public key to connect securely to your EC2 server. To start a secure
connection from Cloud9 via SSH you need to setp the the SSH key, generated by Cloud9, to EC2.
 

 
Step 1
Login to the EC2 instance  and run the below commands:
sudo yum -y update
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
export NVM_DIR="/home/ec2-user/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
. ~/.bashrc
nvm install node
sudo chmod u=rwx,g=rx,o=rx ~
sudo yum -y groupinstall "Development Tools"
curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash
export NVM_DIR="/root/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" 
 
Step 2
Copy the SSH Key from the Cloud9
 
Step 3
Paste the SSH key to the ec2-user authorization key.
 nano  /home/ec2-user/.ssh/authorized_keys

Related posts:

  1. 9 Advantages and Disadvantages of Cloud Computing for Business
  2. How to Build High Availability Web Server with GlusterFS on Debian
  3. Docker Command List with Examples in Linux
  4. Six Easy Steps to Create a Self-Signed Certificate on Ubuntu Server

Filed Under: Off Track

Primary Sidebar

Please help us sharing

Categories

  • AWS
  • Basics
  • Containers
  • Cryptocurrency
  • Cyber
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Law & Human Rights
  • Network Security Tips
  • Off Track
  • Social Media Governance
  • Tech Comparisons
  • Tech Stack Suitability
  • Telecom
  • Tutorial

CISSP Sample Test

Take a CISSP Sample Test

CISA Sample Test

CISA IT governance Sample test

Please Follow Us

Contact us for Ads

Go to Contact Form

Search

Footer

Copyrights

Protected by Copyscape Duplicate Content Detection Software

Securitywing.com reserves the copyrights of all of its published articles.No contents of this site is permitted to be published to anywhere else in the Internet.If any contents are found in any other websites, securitywing reserves the rights to file a DMCA complaint. But you have the right to use the link of any relevant article of this site to point from your website if you consider that it might improve the quality of your article.

Tags

audit AWS backup basics browser check cisco cloud computer configuration cyber data database email gmail hsrp ids iis informaiton internet kubernetes linux load balancing malware microsoft network protection redundancy risk router security security tips server social media SSL switch test tools vpn vrrp web webserver website windows wordpress

Copyright © 2010-2025 ·All Rights Reserved · SecurityWing.com