Skip to content

Instantly share code, notes, and snippets.

@tonywangcn
Last active March 19, 2017 09:05
Show Gist options
  • Save tonywangcn/5843cefafb133e2be7ebece720f67846 to your computer and use it in GitHub Desktop.
Save tonywangcn/5843cefafb133e2be7ebece720f67846 to your computer and use it in GitHub Desktop.
same user and password
from fabric.api import *
env.hosts = [
'ip',
'ip',
'ip',
]
# Set the username
env.user = "username"
# Set the password [NOT RECOMMENDED]
env.password = "password"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment