Search code examples
python-3.xrobotframeworkrobotframework-sshlibrary

Keyword argument 'ssh -o ProxyCommand' is not supported by this keyword. Robot framework


I am trying to run the process:

Run Process       python   ssh -o ProxyCommand='ssh -W %h:%p 10.10.10.10' 10.xxx.xxx.xxx

But am getting below error:

"Keyword argument 'ssh -o ProxyCommand' is not supported by this keyword"

Need help here to run my command


Solution

  • This is from the documentation for Run Process:

    Note that possible equal signs in *arguments must be escaped with a backslash (e.g. name\=value) to avoid them to be passed in as **configuration.

    So, you need to put a \ before the =:

    ssh -o ProxyCommand\=...
    

    You probably also need to remove python , and you also probably need to use shell=True, but that's not related to the question you asked about this specific error message.