I am unable to understand how should I set username, password, ip and port for my remote host in python fabric. I followed this. But the docs only explains like below:
from fabric.api import run
from fabric.api import env
env.hosts = [
'newyork',
'seattle',
'localhost',
]
def host_type():
run('uname -s')
def diskspace():
run('df')
I wonder how they are connecting to the hosts network etc without giving any connection or credential information?