GithubHelp home page GithubHelp logo

aws-ec2-file-copy's Introduction

Copying a File from Public to Private Instance in AWS EC2

This guide provides step-by-step instructions for copying a file from a public EC2 instance to a private EC2 instance in AWS.

Overview

This repository contains instructions for securely transferring a file from a public EC2 instance to a private EC2 instance using the SCP command. By following these steps, you'll be able to copy files between EC2 instances securely.

Table of Contents

  1. Prerequisites
  2. Setup Instructions
  3. Usage
  4. Additional Documentation
  5. Contributing
  6. License

Prerequisites

Before you begin, ensure you have:

  • Access to the AWS Management Console.
  • SSH access to both the public and private EC2 instances.
  • The .pem key file for accessing the EC2 instances.

Setup Instructions

  1. SSH into Public EC2 Instance:

    • Connect to the public EC2 instance using SSH.
  2. Copy File from Public to Private Instance:

    • Use the scp command to securely copy the file from the public instance to the private instance.
    • Command:
      scp -i <pem keyname> <filename> ec2-user@<private instance private ip>:<destination>
      
      Example:
      scp -i key.pem sample.txt [email protected]:/home/ec2-user
      
  3. SSH into Private EC2 Instance:

    • Connect to the private EC2 instance using SSH.
    • Command:
      ssh -i key.pem ec2-user@<private instance private ip>
      
  4. Verify File Copy:

    • Once connected to the private instance, verify that the file has been copied successfully.

Usage

Follow the provided instructions to securely copy a file from a public EC2 instance to a private EC2 instance. Ensure that you have the necessary permissions and access credentials to perform the file transfer.

Additional Documentation

For more detailed instructions and additional resources, please refer to the documentation folder in this repository. The documentation includes PDF files with detailed guides, best practices, and exercises for practicing.

Contributing

Contributions to this repository are welcome! If you find issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

aws-ec2-file-copy's People

Contributors

sanjukuruvilla avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.