Re: How to run VNC thru ssh (openssh question)

2006-03-21 Thread Igor Peshansky
On Mon, 20 Mar 2006, Siegfried Heintze wrote:

> >I used to use the following all the time to access my Windows machine
> >remotely:
>
> >ssh -f -L 5901:localhost:5900 -N -C -o Compression=yes -o
> >CompressionLevel=9
> >
> >vncviewer &
>
> >YMMV.
>
> >Obviously, you need to make sure that the port ssh is using is open
> >through any firewall.
>
> >None of this is really Cygwin-specific so further discussion on this l
> >list along this line is really off-topic though.
>
> H... I hope that is not true. I hope this is on topic because I think it
> is an issue with installing ssh. I get the following error when I try the
> command above:
>
> No matching comp found: client zlib server none,[EMAIL PROTECTED]
>
> I tried leaving off the -o and compression flags, but this did not help. I
> got the same error until I removed the -C and then it did not even give me
> an error message (and still did not work).
>
> Thanks,
> Siegfried

Again, as Larry said, this is off-topic, but I use the following neat
batch file to tunnel VNC over ssh, where ssh runs only as long as the VNC
session is open, and then quits.  In fact, I wouldn't even need a batch
file if I had the RealVNC directory in my system PATH.

@echo off
cd C:\Program Files\RealVNC
vncviewer.exe | c:\cygwin\bin\ssh -L 5900:127.0.0.1:590%1 %2 "cat >/dev/null"

The two parameters to the batch file are the display number (0, 1, etc)
and [EMAIL PROTECTED]

HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to run VNC thru ssh (openssh question)

2006-03-21 Thread Simon Austin
Siegfried Heintze wrote:
>> I used to use the following all the time to access my Windows machine
>> remotely:
>> 
>> ssh -f -L 5901:localhost:5900 -N -C -o Compression=yes -o
>> CompressionLevel=9 
>> 
>> vncviewer &
>> 
> H... I hope that is not true. I hope this is on topic because I think it
> is an issue with installing ssh. I get the following error when I try the
> command above:
>
> No matching comp found: client zlib server none,[EMAIL PROTECTED]
>
> I tried leaving off the -o and compression flags, but this did not help. I
> got the same error until I removed the -C and then it did not even give me
> an error message (and still did not work).
>   
I'm no expert, but...

-C and -o Compression=yes are the same option, so it'll fail due to what
looks like an incompatibility between versions of ssh I think. See:
http://archive.netbsd.se/?ml=openssh-unix-dev&a=2005-10&t=1422256

If you leave compression off, then you won't get an error message
because it's probably working. ssh with -f will just spawn in the
background and return (-f implies -n, which redirects to /dev/null).

[EMAIL PROTECTED] ~]$ ssh -C -N -f -L 5901:localhost:5900
[EMAIL PROTECTED]
[EMAIL PROTECTED] ~]$ ps -elf | grep ssh
1 S me19430 1  0  75   0 -  1117 -  10:42 ?00:00:00
ssh -C -N -f -L 5901:localhost:5900 [EMAIL PROTECTED]

You don't say *how* it's not working, but if you're using
"5901:localhost:5900" as the tunnel, you'll need to connect vncviewer to
localhost:1 not just localhost.

- Si

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: How to run VNC thru ssh (openssh question)

2006-03-20 Thread Larry Hall (Cygwin X)

Siegfried Heintze wrote:

I used to use the following all the time to access my Windows machine
remotely:



ssh -f -L 5901:localhost:5900 -N -C -o Compression=yes -o
CompressionLevel=9 


vncviewer &



YMMV.



Obviously, you need to make sure that the port ssh is using is open
through any firewall.



None of this is really Cygwin-specific so further discussion on this l
list along this line is really off-topic though.


H... I hope that is not true. I hope this is on topic because I think it
is an issue with installing ssh. I get the following error when I try the
command above:

No matching comp found: client zlib server none,[EMAIL PROTECTED]

I tried leaving off the -o and compression flags, but this did not help. I
got the same error until I removed the -C and then it did not even give me
an error message (and still did not work).


It is off-topic because there is nothing Cygwin-specific about the process to
getting this working.  So unless you can point to how this works on some
other platform and not on Cygwin, you need to find a good book, site, or
forum for ssh tunneling information.  Consulting the man page is a good start
if you haven't already.

I don't know what lines you typed to get the above error but I'm guessing from
the error you typed:

ssh -f -L 5901:localhost:5900 -N -C -o Compression=yes -o CompressionLevel=9 
[EMAIL PROTECTED]


I can't reproduce your issue.  When I try it, it tells me:

ssh: connect to host openssh.com port 22: Connection timed out


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/