Re: problem with plink and remote command

From: Owen Dunn (owend_at_chiark.greenend.org.uk)
Date: 03/26/04


Date: 26 Mar 2004 11:39:46 +0000

Pascal Legrand <Pascal.Legrand@univ-orleans.fr> writes:
 
> i've got a problem with the plink command.
> i would like to connect to a linux server with ssh, from a windows client with plink, and after use vnc.
>
> when i use the following command:
> plink -ssh -v -2 -i "c:\logici~1\putty\clef\serveu~1.ppk" -L 3000:192.168.151.199:5901
> root@192.168.151.199
>
> and just after in the shell "vncserver", all is ok, the tunnel exist
> and vncserver working good.

When you run "vncserver", what happens? Does it return you
immediately to your shell prompt? If so, it's forking off a daemon in
the background, and this explains the problem you're seeing with
plink; the vncserver process starts an Xvnc in the background,
finishes successfully, and therefore the connection is over.

If this is the case, you need to find a way of making vncserver not
terminate; I suspect you may have to run Xvnc directly instead of
using vncserver.

(S)



Relevant Pages

  • Re: problem with plink and remote command
    ... >> i've got a problem with the plink command. ... >> i would like to connect to a linux server with ssh, from a windows client with plink, and after use vnc. ... >> and vncserver working good. ... Pascal Legrand *IUT de Chartres* - _Service Informatique_ ...
    (comp.security.ssh)
  • Re: problem with plink and remote command
    ... >> i would like to connect to a linux server with ssh, from a windows client with plink, and after use vnc. ... >> and vncserver working good. ... In fact it doesnt matter the command i launch with the command line, if i use the following command ...
    (comp.security.ssh)