News for hackers. Stuff that matters.
Re:SSH quoting by jlokier on Saturday June 12, 2021 @06:55PM (#27488098)
No, "-n" has the opposite effect to the one desired. "-n" is for when you have a server-side command that reads standard input and you want to prevent it from reading from the client side. "-n" cuts off the standard input so the server-side command reads empty input (/dev/null).

The desired effect is when you want the server-side script to read input from the client environment. For example so you can give answers to questions, or interact with a terminal program. That's broken by piping $script in as input, and it's also broken by "-n".

There are no comments on this comment yet.