Sarkhan Elkhanzade wrote:
Hi,

Why not to to run command directly like -
ssh u...@hostname command


because I need to tunnel through a jump box.




Regards,
Sarkhan

On Sat, Dec 27, 2008 at 1:15 AM, Noah <adm...@enabled.com <mailto:adm...@enabled.com>> 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 <http://192.168.1.20:22>
    n...@domain.com <mailto:n...@domain.com>
    ssh -p 12345 localhost 'chown -R noah:noah /shares/internal/Music/'

    Cheers,

    Noah



Reply via email to