Skip to content

Instantly share code, notes, and snippets.

This is just a test
This is just a test
This is just a test
This is just a test
@arielzn
arielzn / ssh_run.py
Last active December 12, 2017 06:40
Running commands with paramiko on remote hosts defined on ssh_config
#!/usr/bin/env python
import os
import paramiko
import argparse
import socket
import logging
def create_ssh_client(hostname):
-------------------------------------------------------------------------
Map id:gid for ext4 HDD mount
Example
current user uid:gid -> 1000:1000
external HDD uid:gid -> 1001:1001