Re: Starting a daemon with ssh



In article
<c5e09951-4df6-4a6e-9a3b-9a01895f8363@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
almeidaraf <almeidaraf@xxxxxxxxx> wrote:

Hello,

I want to run a program in the background of a remote server. I wish
to
use ssh to do it. My first try was:

% ssh server \( program \& \)

It didn't work, ssh would hang. So I tried ssh with the -n option:

% ssh -n server \( program \& \)

It didn't work either. How should I fix that? Isn't there a way for
asking openssh not to wait for output of the program? Maybe I'm
missing
something on the manpage, but I got nothing :(.

ssh server 'program </dev/null >/dev/null 2>&1 &'

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.



Relevant Pages

  • Re: Using an IP from remote server on home computer
    ... > connection. ... > ports (does not require root access on remote server). ... > tried ssh port forwarding with a Windows ssh client like Putty. ...
    (comp.os.linux.networking)
  • Re: first ssh, then start copying
    ... > MW> look at what files I have on a remote server, then exit, ... > (ssh, scp, sftp, etc.), and these programs do not cooperate to share ... So there's constant creation of new SSH connections, ... Hi Richard! ...
    (comp.security.ssh)
  • Re: Help with SSH
    ... > I am trying to set up authentication with SSH so I can let a script run ... > a command through ssh on a remote server. ... > public keys and have copied the public key to the remote server to the ...
    (RedHat)
  • Re: Using a keyboard-friendly terminal client with SSH
    ... A person had used a keyboard-friendly terminal client with SSH ... used to telnet to the local telnet port. ... looks like a SSH terminal client to the remote server ...
    (comp.security.ssh)
  • Re: Class B MH for sale by Will
    ... >> the remote server is a local file system- plus, ... >> protocol, so it is secure. ... ssh access- my webserver is actually running FreeBSD, ...
    (rec.outdoors.rv-travel)