3 ms·
If you do need single quotes in the inner command, you can use the "'" trick: ssh host -- ls "'"'folder$name'"'"
by nneonneo 3y ago
If you do need single quotes in the inner command, you can use the "'" trick:
ssh host -- ls "'"'folder$name'"'"