Skip to content

Chthonolasius/sshConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

SSH Config

[TOC]

Introduction

This repository is used to automatically configure your ssh configuration file for a CTF : $HOME/.ssh/config. You only need te create an input file with -i option like bellow.

Options

-h/--help : cat this file.

-i/-inputfile : the input file containing information on ssh configuration. The format is: <IP@>:<username> or <IP@>:<username>:<hostname> for each line.

-k/--key : if you already have a keyfile.key.pub in $HOME/.ssh/ you can use it with this option. You only need to specify the name of the file. :warning: ONLY USE YOUR PUBLIC KEY : .key.pub, DON'T USE YOUR PRIVATE KEY TO CONFIGURE YOUR SSH ⚠️

Exemples

bash sshConfig.sh -i inputfile.txt
bash sshConfig.sh -i inputfile.txt -k mykey.key.pub

After, if you didn't specify the in the input file, you can connect via ssh with the command below :

ssh m1
ssh m2
#etc

or the you specify :

ssh <hostname>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages