GithubHelp home page GithubHelp logo

jumelis / aws_lab_start_script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luisalvarez246/aws_lab_start_script

0.0 0.0 0.0 0 B

shell script for connecting to aws ec2 lab via ssh

Shell 100.00%

aws_lab_start_script's Introduction

aws_lab_start_script

shell script for connecting to aws ec2 lab via ssh

This script helps you connect to an ec2 instance from AWS labs, automating the elimination of previous .pem files and connecting through ssh.

Note:

  • You still have to manually download the .pem file
  • You will be asked to enter the IP address required to stablish the ssh connection

How to use the script

Method 1: Locally

Clone this repo and enter in it:

cd cloned_repo

From the root of the repo give execution permissions:

chmod 700 lab_start_script.sh

Then run it:

./lab_start_script.sh

After running it, the script will wait for you to download the .pem file, and then will prompt you for the IP address.

Method 2: Globally

Follow these steps, if you would like to execute the mkproject.sh from any path you are into

Step 1: Create $HOME/bin

mkdir $HOME/bin

Step 2: Copy the script into $HOME/bin

To open the route

cd
cd $HOME/bin

Use nano to create and modify the script file

nano lab_start_script.sh

Copy the script content into your newly created mkproject.sh file, and follow the instructions to save and exit.

Use chmod to give execution permissions to the script

chmod 700 lab_start_script.sh

Add the following to your PATH PATH="$HOME/bin:$PATH (go to ~/.zshrc in mac or ~/.bashrc in linux) restart your .bashrc/.zshrc

source ~/.zshrc

After adding the script globally you might execute it as any other command just by calling its name without the extension .sh

lab_start_script.sh

Support & Troubleshooting

You might inform me of any bug or problem at [email protected]

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.