I have this bash file, which asks for IP, password, etc. for OpenSSH to a device.
Now, if i use ssh root@ip, i have to enter the password. This is reall
ssh root@ip
Have you considered Paramiko? It's a Python-library for interacting with SSH.