Re: running shell command through ssh tunnel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you setup the key trust from machine A to machine B and one from
machine B to machine C, you can do (from machine A)
"ssh B ssh C 'chown -R noah:noah /shares/internal/Music'"

On Fri, Dec 26, 2008 at 1:15 PM, Noah <admin2@xxxxxxxxxxx> wrote:
> 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@xxxxxxxxxx
> ssh -p 12345 localhost 'chown -R noah:noah /shares/internal/Music/'
>
> Cheers,
>
> Noah
>



-- 
And, did Galoka think the Ulus were too ugly to save?
                                         -Centauri

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux