Code Monkey home page Code Monkey logo

ssh_connectivitytester's Introduction

SSH_ConnectivityTester

This script allows testing SSH connectivity to a list of servers specified in a file, logging the results of each connection attempt in a JSON file for further analysis.

SSH_ConnectivityTester.py: This is the main script that performs the SSH connection to the servers specified in the servers.txt file using the credentials provided in the credentials.txt file. It logs the results of connection attempts in a JSON file named connection_log.json.

privatekey.pem: This file contains the private key to be used for SSH authentication. You can generate it using PuTTYgen

credentials.txt: In this file the login credentials required for each server must be provided in the appropriate format. For example:

{
    "UserName": "your_username",
    "Password": "your_password"
}

servers.txt: Here you must list the servers to which the script will try to connect. Each server should be on a separate line.

From the “SSH_ConnectivityTester.py” file you have to configure the following parameters:

private_key_path = “./privatekey.pemcredentials_file = “./credentials.txtservers_file = “./servers.txtlog_file = “./connection_log.jsonpassword =usernameusername =pw

Make sure you have the “paramiko” library installed

ssh_connectivitytester's People

Contributors

grodri99 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.