Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.25 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.25 KB

generateSSH-42SP

Simple shell script to generate and output pair of SSH keys with OpenSSH. This project aims to help 42 students connect to the system so they can interact with the repository remotely.

Installation

$ git clone https://github.com/caio-vinicius/generateSSH-42SP create_ssh_key
$ cd create_ssh_key

That's it!

Prerequisites

You need OpenSSH and Unix Shell Interpreter to run properly. If you want copy-paste automatically you can install xclip too.

Tip: If you are in Ubuntu, Ubuntu-based or even Arch-based probably you have these by default installed.

Usage

You can run the script on the root repository:

$ ./generateSSH.sh

If you don't already have a pair of keys, a new pair will be generated and you will be prompted with the public key!

New key

Maybe you already have one, so you will be asked to output the current ou generate another:

New already no key

Or if yes:

New already yes key