| Summary: | implement RemoteCommandCommand | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Christoph Anton Mitterer <calestyo> |
| Component: | Miscellaneous | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED WONTFIX | ||
| Severity: | enhancement | CC: | dtucker |
| Priority: | P5 | ||
| Version: | 9.1p1 | ||
| Hardware: | Other | ||
| OS: | All | ||
|
Description
Christoph Anton Mitterer
2022-12-12 17:20:44 AEDT
You can already do this with a trivial shell pipeline: yourcommand | ssh yourserver /bin/sh or the equivalent shell wrapper around ssh. I don't see a general need for what you're describing. Well that doesn't work as soon as you want pipe something to the shell "script's" stdin... or if you want to have an interactive session. A wrapper command is in principle of course possible, but still less easy to use (one needs to distribute it everywhere, write it smart enough so that it only kicks in for the desired connections, etc.) Anyway... I just reported it because I assumed it would be rather easy to do... I don't strictly depend on it so just close if you don't like the idea :-D Cheers, Chris. (In reply to Christoph Anton Mitterer from comment #2) > Well that doesn't work as soon as you want pipe something to the > shell "script's" stdin... or if you want to have an interactive > session. That's true, however for those cases you could do ssh yourserver "$(yourcommandcommand)" instead. It still doesn't seem like this is something that would be generally useful so I'm going to close this bug. Thanks anyway. OpenSSH 9.3 has been released. Close resolved bugs |