maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Using VNC Viewer Over an SSH Tunnel [Step-By-Step] (https://talk.maemo.org/showthread.php?t=30976)

JayOnThaBeat 2009-08-26 18:01

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by qole (Post 315732)
Another cool thing you can do once you get an SSH server onto your Windows computer: you can use sshfs on your tablet to map Windows file folders onto your tablet. So anywhere you can get WiFi (or, if you tether to a phone, anywhere you can get service) you can access your files as though they were on the tablet...

Ok, I got sshfs installed, now I am stuck
Code:

sshfs [user@]host:[dir] mountpoint [options]
I'm not quite sure about everything after user@host.

Care to help a brotha out?:confused:

qole 2009-08-26 18:24

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
You have to ssh in to your server and find the directory you want. On my Windows machine running cygwin and openssh (this sounds like what copssh is, too), there's a directory called /cygdrive that has all of the server's drives under it. So if you want the Windows machine's C: drive, your directory would be /cygdrive/c/ ... So, if you want to map your C: drive, your first part looks like:

Code:

sudo sshfs WinUsername@your.ip.add.ress:/cygdrive/c/
You need to be root, so I'm using "sudo" in the example above. You need sudser or easy-debian installed to use that.

As for the tablet's mountpoint, you want somewhere that is visible to the File Manager, so that means somewhere under /home/user/MyDocs ... I have made a directory called "lan" that has all my shares in it. So, you have to first make the directory on your tablet:

Code:

mkdir -p /home/user/MyDocs/lan/c
Now you have the mountpoint. Lastly, you need the options. In order to allow everyone to use the shared directory, you have to add "-o allow_other" and if you have a custom port, you add it too.

Here's the final command for our example (using the stuff you've put in your tutorial):

Code:

sudo sshfs WinUsername@your.ip.add.ress:/cygdrive/c/ /home/user/MyDocs/lan/c -o allow_other -p 2222
Now you should be able to open your file manager on the tablet, go into "lan" and then "c" and see your Windows machine's C: drive.

JayOnThaBeat 2009-08-26 18:34

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Snap man!

U are, by far, the shi t.

That was awesome.. I need a smoke now!

JayOnThaBeat 2009-08-26 19:05

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
@qole

I linked to that post in the guide (and full credit given, of course).

pinguino89 2009-08-26 19:44

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
it still gives me "could not connect to the server"....if i use the hom connection (the same of the pc) it's all ok, with ssh, without and with static ip or dynamic...
if I use bluetooth and my nokia e51, nothing...still doesn't connect...

JayOnThaBeat 2009-08-26 21:13

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by pinguino89 (Post 315814)
it still gives me "could not connect to the server"....if i use the hom connection (the same of the pc) it's all ok, with ssh, without and with static ip or dynamic...
if I use bluetooth and my nokia e51, nothing...still doesn't connect...

So... if I get this right...

1. You can establish the tunnel on wifi and over your phone via BT.
2. You can use VNC viewer properly using localhost:1 over wifi.

3. However, when you try to use VNC Viewer while tethered to your phone, it cannot connect?

clarity is key....

JayOnThaBeat 2009-08-26 21:25

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Well, I'm pretty sure I figured out my speed issues.

Apparently you need to have a video hook driver, or a mirror driver, or something to that effect loaded up to make the screen captures more efficient. Well, apparently the drivers that these VNC servers try to load are not 64bit compatible (shocking :-/).

I have already tried TightVNC, RealVNC, and UltraVNC on Vista64 and XP 64.

The only one that is able to load up its hooks (or mirror) driver is TightVNC, and that's the one that has issues with being logged out of windows.

So, I'm going to install XP 32-bit, triple-boot into that, and report back.

Any thoughts / suggestions in the meanwhile would be superb.

JayOnThaBeat 2009-08-27 01:27

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
So it turns out that my computer will not allow me to install a 32-bit OS. I tried XP 32 bit and got a BSOD and I tried Vista 32 bit that just gave me some kind of text error msg (too distraught to remember....).

Could it be that I have some sort of supercomputer, sent from the future?

(It is an Acer after all...... :-/)

I guess I'm stuck between a fast VNC server w/o a working service and a relatively slow VNC server that I can log into windows with.

Things could be worse I suppose.

JayOnThaBeat 2009-08-27 02:43

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Muah ha ha!

I've settled on UltraVNC cuz I just figured out how to block all hosts except 127.0.0.1 from gaining access to it.

(I found this to be a necessity when I got a random request for access (thank god I turned that on ;)))

<Adding to the guide>

///EDIT
<ADDED!>

qole 2009-08-27 06:22

Re: Using VNC Viewer Over an SSH Tunnel [Step-By-Step]
 
Quote:

Originally Posted by JayOnThaBeat (Post 315998)
... I got a random request for access (thank god I turned that on ;))) ...

And I had just about figured out your password, too!


All times are GMT. The time now is 15:46.

vBulletin® Version 3.8.8