I have written a simple code wherein I invoked ssh to one of my lab Device ip through os.system
. Now the problem for me is how do I supply a password? Can I do it via python?
Below is the code that I have been using:
import os
os.system("ssh 192.168.1.100")
I tried to understand how the os
module works but so far am not able to supply password argument - how do I supply a password via python to this program?
My environment is Bash.