I have a common VM and remote VM. we have network devices, only remote VM has access to network devices.
Python script will do configurations in network devices.
I must trigger a python script from common VM.
To implement this Currently I have two options in my mind.
Configure password less between common vm to remote vm. Trigger a script from common vm which copies script to remote vm then start execution.
directly ssh using paramiko to remote and again ssh using paramiko to network devices (This option is not tried, I am going to try now)
Which is the better method or any other suggestions will welcome.
Thanks