SSH quoting

# · 🔥 241 · 💬 74 · 2 years ago · www.chiark.greenend.org.uk · pabs3 · 📷
A while back there was a thread on one of our company mailing lists about SSH quoting, and I posted a long answer to it. The question was why a sequence of commands involving ssh and fiddly quoting produced the output they did. Oh hi, my dubious life choices have been such that this is my specialist subject! This is because SSH command-line parsing is not quite what you expect. Now, the SSH wire protocol only takes a single string as the command, with the expectation that it should be passed to a shell by the remote end. Now, I wouldn't have implemented the SSH client this way, because I agree that it's confusing. Once you know about it you can use the proper quoting, though.
SSH quoting



Send Feedback | WebAssembly Version (beta)