Did you read this bit:
There is some advice here: SSH'ing from a command line sensor or shell command