ssh remote execution

From: Bader (baderA_at_gmail.com)
Date: 09/29/05


Date: 28 Sep 2005 21:01:36 -0700

it is mentioned in the manual pages of ssh(1) that

" The session terminates when the command or shell on the remote
machine exits and all X11 and TCP/IP connections have been closed."

I wrote a program which create a sub-process the sub-process will then
start another program remotely on another host. I was able to do that
using the following call after I fork another process

execl("/bin/ssh","ssh","user@host","~/dir/remoteprog",0);

However the process on the local host will not exit because of the way
remote execution is designed in ssh.

Is there a way to get around this and close the session before the
remote program finishes its execution.

Thanks in advance



Relevant Pages

  • Re: ssh remote execution
    ... > " The session terminates when the command or shell on the remote ... > remote execution is designed in ssh. ... than the pseudo-terminal ssh provides, ...
    (comp.unix.programmer)
  • Re: Time Log
    ... The script does execute as you hoped. ... but I can't get remote execution of the script working. ... Dim objFileSystem, objOutputFile ...
    (microsoft.public.scripting.vbscript)
  • Re: Remote execute batch
    ... You can also create a batch file to kick off the script. ... be faster than remote code execution. ... WMI also has a class that supports remote execution. ...
    (microsoft.public.scripting.vbscript)
  • Re: Running an application automatically after a ssh login.
    ... ::: I would like to run an application directly after a ssh login is ... :: man ssh. ... running a remote program to interact via a tty are quoted below. ... Login session and remote execution ...
    (comp.os.linux.networking)
  • ssh keys for remote executeion (local to remote) but can it work the other way.
    ... Generating ssh keys for for local and remote on a two node ... However can remote execution of scripts be executed from the remote to ...
    (comp.security.ssh)