Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2008 17:44:31 -0800
From:      Noah <admin2@enabled.com>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   running shell command through ssh tunnel
Message-ID:  <4955887F.1090704@enabled.com>

next in thread | raw e-mail | index | archive | help
Hi there,

I am trying to run a shell command to the host at the far end of an ssh
tunnel.   Here is how I structured access.  Is there any way to do this
more compactly on one line?


ssh -L 12345:192.168.1.20:22 noah@domain.com
ssh -p 12345 localhost 'chown -R noah:noah /shares/internal/Music/'

Cheers,

Noah




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4955887F.1090704>