SSH into my Ubuntu Machine?

Discussion in 'Motorola Droid' started by Xsoldier2000, Jan 13, 2010.

  1. Xsoldier2000
    Offline

    Xsoldier2000 Member

    Joined:
    Dec 1, 2009
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Ok, so I'm using ConnectBot to SSH intomy Ubuntu Box. It connects fine, but how do I see my desktop? I've started x11vnc once I've tunneled in, but haven't found a VNC program to see my desktop.

    pUtTy forwards to 5900 on my winodws box and then I start VNC looking at localhost to connect in...

    Of course this is over Wifi as Verizon blocks a majority of the ports.

    Any chances someone has figured this out already?
     
  2. Xsoldier2000
    Offline

    Xsoldier2000 Member

    Joined:
    Dec 1, 2009
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    bump :motdroidvert:
     
  3. Xsoldier2000
    Offline

    Xsoldier2000 Member

    Joined:
    Dec 1, 2009
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    :greendroid: bump :greendroid:
     
  4. sessionthree
    Offline

    sessionthree New Member

    Joined:
    Jan 10, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    North Carolina
    Ratings:
    +0
    There are several VNC clients in the marketplace. Search for VNC.
     
  5. Xsoldier2000
    Offline

    Xsoldier2000 Member

    Joined:
    Dec 1, 2009
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Yes, I've tried many, but the question is how to pull up my desktop once I've ssh'd into it?

    I cann get into the box and cmd line everything...I run x11vnc from said command line, but then what? I open Remote VNC Pro...and do what? what settings do I use in conjunction with Connectbot?
     
  6. sessionthree
    Offline

    sessionthree New Member

    Joined:
    Jan 10, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    North Carolina
    Ratings:
    +0
    Try running it without going through SSH first. On your linux box, just run the server and set up the port you want to use. On your phone, just run the client and connect using the ip and port of your server.

    If you want to use it through SSH connection it's a little more involved (and I haven't done this on the phone yet.)
     
  7. Xsoldier2000
    Offline

    Xsoldier2000 Member

    Joined:
    Dec 1, 2009
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Well, I know I can't connect with just a vnc viewer from a windows box, but figured I might try it on the Droid...didn't work. Got a "xxx.xx.xx.xx Host, xxxx Port is not an RFB server."

    I did manage to port forward to 5901 on Connectbot and then connected to "localhost" @ 5901 with Remote VNC Pro to achieve a "bitmap excedes VM budget"

    :icon_ banana:

    Getting closer, but I think this will be as close as I get due to hardware limits.
     
  8. possessedskier
    Offline

    possessedskier Member

    Joined:
    Dec 14, 2009
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New York State, USA
    Ratings:
    +0
    I've remote controlled my Ubuntu PC from my Droid through an SSH tunnel on Verizon 3G using Connectbot and AndroidVNC following the instructions at this link.
     
    Last edited: Jan 14, 2010
  9. carbine
    Offline

    carbine Member

    Joined:
    Dec 13, 2009
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Akron, Ohio
    Ratings:
    +0
    VNC is platform independent. Should work regardless of what OS you use.

    Source
     
  10. sladekal
    Offline

    sladekal New Member

    Joined:
    Nov 27, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    This is what I did on my Ubuntu box.

    ::Make sure that SSH is installed first, you will tunnel VNC so you will not have to open its ports to the world.
    ::Setup an SSH connection to your host/IP to port 22.
    ::Setup a new connection in "ConnectBot" username@domain
    ::You will need to tunnel (Port Forward) port 5900, in "ConnectBot" (Android App) it is a local type, source 5900, and then localhost:5900
    ::setup password auth on your linux box
    x11vnc -storepasswd
    ::Enter your password.
    ::start x11vnc requiring a password (You can do this from ConnectBot)
    x11vnc -usepw
    ::Connect remotely using your vnc client. (I use "Remote VNC" Android App)
    Host:127.0.0.1
    Port:5900
    Password: Whatever you set
    Name: Whatever you want
     
  11. Xsoldier2000
    Offline

    Xsoldier2000 Member

    Joined:
    Dec 1, 2009
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Worked Perfectly! Albiet, slow and anytime I open a menu, AndroidVNC will close.

    I understand, I guess the point I was trying to make wasn't too clear. I can not directly connect to my Ubuntu box straight from any VNC program (Linux, Windoze, Mac) because I first need to SSH in and start the server (in this case x11vnc)

    What I was missing was pointing the VNC program to Address: 127.0.0.1. After doing that, I connected fine.

    Thank you everyone, I hope this helps someone else looking for a new level of geekness!

    \../, :motdroidvert: ,\../
     
  12. water
    Offline

    water New Member

    Joined:
    Nov 11, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Thanks for the link... along with this thread and everyones contributions I was able to get VNC over SSH working.

    Here is another explanation (that helped me) on the subject link.

    water
     
Search tags for this page
android ubuntu ssh
,

connectbot ubuntu

,
droidbox ubuntu ssh
,
how to ssh from android to ubuntu
,
how to ssh into ubuntu desktop
,
ssh android to ubuntu
,
ssh from android to pc
,

ssh from android to ubuntu

,
ssh into ubuntu from android
,
ssh to pc from android