Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • If public keys arent an option, you could do something crude to minimize password prompts like cat file | ssh user@host 'cat > /destination/of/file; /path/to/script &>/dev/null; cat results' > /destination/of/results Commented Mar 11, 2012 at 23:04
  • If you do want to use the password, you could always use OpenSSH's connection pooling by defining ControlMaster=yes and ControlPath=/path/to/socketfile, and then start one ssh connection with -f to run a background ssh. Tell all subsequent SSH connections to use the same socket file. Commented Mar 11, 2012 at 23:06