Skip to content

Instantly share code, notes, and snippets.

@pniederlag
Created August 25, 2015 09:08
Show Gist options
  • Save pniederlag/84f38dd15e440556a22f to your computer and use it in GitHub Desktop.
Save pniederlag/84f38dd15e440556a22f to your computer and use it in GitHub Desktop.
Dummy Test Repo to test fabric/paramiko ssh_config problems
http://www.fabfile.org
fab hello
# should work without password prompt when you have a key on h12.niekom.de
from __future__ import with_statement
from fabric.api import local, settings, abort, run, cd, env
from fabric.contrib.console import confirm
env.use_ssh_config = True
env.hosts = ['h12.niekom.de']
def hello():
run ("echo 'Hello world!'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment