Skip to content

Instantly share code, notes, and snippets.

@syfun
Created June 23, 2017 01:17
Show Gist options
  • Save syfun/263c355f581f3271f0fdfd532d38d61a to your computer and use it in GitHub Desktop.
Save syfun/263c355f581f3271f0fdfd532d38d61a to your computer and use it in GitHub Desktop.
fabric env sample
from fabric.api import env, cd, sudo, run
env.user = 'user'
env.hosts = ['192.168.0.2']
env.password = '123456'
env.prompts = {
'continue connecting (yes/no)? ': 'yes',
'password: ': env.password
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment