I'm automating tasks and I'm new to Python, so I'd like your help because I need to run a Shell script on another machine and this command I need to give inside a Python code.
I thought about using something like:
#!/usr/bin/python
# -*- coding: utf8 -*-
import subprocess
subprocess.call('ssh user@host', shell=True)
But this is the reason why I do not know how to implement Login and Password (as well as "yes"
of encryption).