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

securitywing

Menu
  • About
  • Must Read
      • IIS Performance Boost
      • RFID Security
      • Web App Security Testing
      • How to Secure Home Network
      • Prevent Cross-Site Scripting Attacks
      • Renew Self-Signed Certificates
      • Penetration Testing Tools
      • VPN Concentrator
      • Forensic Investigation Tools
      • Digital Certificates
      • Cloud Security Issues
      • Advanced Evasion Prevention
      • Firewall Types
      • Tips to Prevent Data Exfiltration
      • Classified Info Handling
      • MySQL Security
      • Definition of 7 Types of Malware
      • VOIP Security
      • Why Antivirus Software Fails
      • 15 Network Security Vulnerabilities
      • Web App Security
      • IT Security Standards
      • Types of Virtualization
      • Android Security
      • Digital Signature
      • Advanced Malware Protection
    • Close
  • Consultancy
  • Contact

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:

  • No Related Posts

Filed Under: Off Track

Primary Sidebar

CISSP Sample Test

Take a CISSP Sample Test

CISA IT governance Sample test



Twitter Follow @securitywing

Categories

  • AWS
  • containers
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Network Security Tips
  • Off Track
  • Telecom
  • Tutorial

Pages

  • About
  • Best IT Security Certification Exam
  • CISA IT governance Sample test
  • CISA Sample Test
  • CISSP Sample Test Online
  • Consultancy
  • Contact

Popular Posts

  • How to Renew Self-Signed...
  • 7 Different Types of Fire...
  • How to install a new Goda...
  • Yahoo Mail Security Setti...
  • How to Configure AAA (TAC...
  • 3 Steps to Install Miniku...
  • 63 Web Application Securi...
  • What is Digital Certifica...
  • 3 Simple Steps to Capture...
  • How to Setup AWS CloudFro...

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 data database email firewall gmail hsrp ids iis informaiton internet it kubernetes linux load balancing malware microsoft network protection redundancy risk router security security tips server SSL switch test tools vpn vrrp web webserver website windows wordpress

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