Skip to content

Instantly share code, notes, and snippets.

View Arun-Baskaran's full-sized avatar

Arun-Baskaran

View GitHub Profile
@Arun-Baskaran
Arun-Baskaran / python_over_ssh
Created April 26, 2017 10:37 — forked from mattyjones/python_over_ssh
Execute a script located on a remote server over ssh using python
#! /usr/bin/env python
import secure
import pexpect
# the file containing the list of servers to log into
input_file = "script_list"
# The login creds
user = secure.USER