I need to run the following command:
sed -i 's/^/command="\/bin\/false",no-agent-forwarding,no-pty,no-X11-forwarding, /' ~/.ssh/authorized_keys
within sudo su user -c
I think I've spent about 3 hours reading quoting guides, similar examples, and testing within bash and I still can't find a way that works :(
here is my history if you want a good laugh at my misfortune http://pastebin.com/K6YMm9mp