Skip to content

Instantly share code, notes, and snippets.

@darilldrems
darilldrems / create ssh config.sh
Created March 23, 2016 13:28 — forked from yomexzo/create ssh config.sh
Troublshooting tools
#! /usr/bin/env python
import re
from os import path, listdir
from os.path import isfile, join
config_path = path.abspath(path.expanduser('~') + '/.ssh/config')
template = 'Host {}\n\tStrictHostKeyChecking no\n\tHostName {}\n\tUser {}\n\n'
begin = '#WRW HOST VARS - START'
end = '#WRW HOST VARS - END'