Re: running shell command through ssh tunnel



Joe Beasley wrote:
ssh remote "command you want to run on remote"

This will establish the ssh connection, and run the command. You must
use the " ". For multiple commands use "cmd1 ; cmd2; cmd3; etc"




not exactly the right answer. it is a jump box question. It was answered on another thread though.

Cheers,

Noah


On Fri, 2008-12-26 at 13:15 -0800, Noah 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



Relevant Pages

  • JUMP for VMS V6.1 -- New version, new features
    ... JUMP is an OpenVMS system management tool that allows a user to login ... -- Real-time notification of exact jumps to OPCOM and specified ... -- Single Command Mode permits a single DCL command to be executed ...
    (comp.os.vms)
  • Re: directory handling
    ... i really want to put these into seperate directories of of my ... But i cant find the right command to get the current working ... cd% will jump to the directory new_dir. ... pushd form the file exchange. ...
    (comp.soft-sys.matlab)
  • Re: Passwordless logins, .shosts for Windows CVS clients with Cygwin
    ... depending on the hardware involved, SSH configuration, frequency of CVS ... It really shouldn't be this way -- ideally, you'd make one SSH connection ... NKG> CygWin window or command window and just have it Work. ...
    (comp.security.ssh)
  • Re: manning man
    ... that jump to the end of the document and then back. ... Given alone it will go to the end of the ... you can give initial commands to less with the + command line ... option character. ...
    (comp.unix.shell)
  • Re: Question from a newbie: How do you specify an address to jump to in hex?
    ... Rick Speyer schreef in berichtnieuws ... I'm trying to jump from one address to another but I can't ... absolute adress, meaning that if you want to jump to ... The actual command consists outof the bytes 0F 85, ...
    (comp.lang.asm.x86)