ssh-copy-ids write your user@host and password into host.txt then python ssh_copy_id.py requirement pip install pexpect