You can also set passwords for each node. This was not obvious to me, so here everything goes to someone who is looking for:
from fabric import env env.hosts = ['user1@host1:port1', 'user2@host2.port2'] env.passwords = {'user1@host1:port1': 'password1', 'user2@host2.port2': 'password2'}
Fabric caches used passwords in the env.passwords dictionary. He sets this cache using the full host string as the key of this dictionary and password as the value. If you install this dictionary yourself before performing any task, Fabric will not query them at all.
stunsch Apr 6 2018-11-11T00: 00Z
source share