On Fri, Jun 17, 2011 at 4:56 AM, Paul Fierro <pablo at freefill.com> wrote:
> Hi,
>
> Trying to run this but it isn't working - I'm suspecting it's the quotes:
>
> $ ssh machine1 "ssh machine2 "mysql -e "show databases"""
>
> I tried various combinations of single and double quotes as well as
> backslashes. Can anyone help?

Have you tried double, single, escaped double?

$ ssh localhost "ssh localhost 'echo \"1      2\"'"
1      2


Brock