79778565

Date: 2025-09-29 22:14:55
Score: 1
Natty:
Report link

Figured it out. Use env to set the variable and invoke the bash shell.

me@my_machine $ ssh adminact@remote_machine -- /bin/env FOO=1 /bin/bash

adminact@remote_machine $ echo $FOO
1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Myles Prather