Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jsimpso/ssh-exec

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 

Repository files navigation

ssh-exec

####Author: James Simpson ####Version: 1.0

This script will allow the user to execute multiple commands against multiple SSH enabled devices. In its current state, it's used for connecting to Cisco switches / routers - but with a bit of tweaking could be applied to any number of other devices.

The output can either be displayed in your terminal screen, written to a file, or sent via email (with a bit of extra configuration)

Uses the following modules:

  • Paramiko to handle SSH
  • Getpass for secure password entry
  • Time to allow for send delay
  • Readline to prevent input errors
  • Re for regex matches
  • Socket to handle socket exceptions
  • Smtplib to handle email
  • OS to remove temporary file created for email output

About

This script will allow the user to execute multiple commands against multiple SSH enabled devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.