Skip to content

Instantly share code, notes, and snippets.

@tonywangcn
Created March 19, 2017 09:04
Show Gist options
  • Save tonywangcn/a7cb9f0ef2d6ffb07795b32cd2904161 to your computer and use it in GitHub Desktop.
Save tonywangcn/a7cb9f0ef2d6ffb07795b32cd2904161 to your computer and use it in GitHub Desktop.
different users and password
from fabric.api import *
env.hosts = [
'username1@ip:port',
'username2@ip:port',
'username3@ip:port',
]
env.passwords = {
'username1@ip:port': "password1",
'username2@ip:port': "password2",
'username3@ip:port': "password3",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment