I am getting the following error when running the script below,can anyhelp to identify what the problem is and how to overcome it
import subprocess import sy
The third element in ssh_command is an integer. It needs to be a string.
ssh_command
e.g:
ssh_command = ["ssh", "-p", 29418, ... # ^ problem
And the solution is simple, just add some quotes:
ssh_command = ["ssh", "-p", "29418", ... # ^Now it's a string.