I am trying to pass dict arguments using the ssh
command via the os
module:
os.system(f'ssh remote_host python -u - {dict1} {dict2} < local_script.py')
I am getting an error:
sh:line:0 syntax error near unexpected token ('
What is the right syntax to pass dict as an argument?
If I pass string instead of dict, it works fine.
Any suggestions?