terça-feira, 15 de junho de 2010

SSH tunneling and VNC on ANDROID 1.5

This tutorial assumes that:

  1. You have a working SSH server on your computer
  2. You have a VNC server on your computer
1 and 2 wont'be covered , as google has a handful of tutorials.

Procedure:

  1. Install ConnectBot from Android Apps
  2. Create a new connection host. Example: (Protocol , ssh duh! ) Admin@192.168.YY.YY:22 , where YY is the IP on your local network of the SSH server
  3. See if all goes well and you can connect. Now create a port forward ( hit menu button , port forwards)
  4. On Port Forwards menu, click Add Port Forward with the folowing :
  • Nickname : VNC SSH ( or any other)
  • Type: Local
  • Source Port: 5900
  • Destination: localhost:5900
  • Hit click port forward
5. For the sake of it , disconect and connect again. Check if the rule you added is NOT striketroughed ( i think i just made a word? )
6. Download androidVNC from Android Apps
7. Create a new connection with the following :
  • Nickname: SSH-Android ( or any other)
  • Password: password-you-set-up-in-vnc-server ( see Additional Notes)
  • Adress: 127.0.0.1
  • Port: 5900
  • Hit connect
8. If all goes well , you have now a SSH tunnel with VNC on top of that :)


Additional Notes:

  1. Before you connect, check if ConnectBot is connected.
  2. If you're on Windows XP don't forget to add an execption on TCP port 22 ( SSH )

If you're running TightVNC Server READ THIS

  1. Right click on the icon in the taskbar
  2. Go to Administration tab
  3. Check the following
  • Allow loopback connections
  • Allow only loopback connections ( for security improvement)
The password you're supposed to enter in the VNC connection on Android is the one configured in Server tab / Primary Passsword


Nice diagram :

http://members.shaw.ca/nicholas.fong/vnc/tunnel-vnc.png

Android phone used : LG GW620 aka PowerHouse

Thanks goes to my brother :D

Sem comentários:

Enviar um comentário