[TOC]
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.
-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
bash sshConfig.sh -i inputfile.txt
bash sshConfig.sh -i inputfile.txt -k mykey.key.pubAfter, if you didn't specify the in the input file, you can connect via ssh with the command below :
ssh m1
ssh m2
#etcor the you specify :
ssh <hostname>