What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

SSH help

MrNemo

New Member
I was hoping someone could walk me through connecting to my home computer using connectbot. I've been trying for a while and I haven't had any luck. I've set up openssh on my computer and created private and public keys. I've been following tutorials but have had no luck.
 
I was hoping someone could walk me through connecting to my home computer using connectbot. I've been trying for a while and I haven't had any luck. I've set up openssh on my computer and created private and public keys. I've been following tutorials but have had no luck.

I have never been successful using private and public keys through connectbot, however I was able to connect using password authentication. Have you tried that?
 
Haven't tried it yet and wouldn't know how to. I'm new to ssh so i would have to be walked through everything or at least led to a good article.
 
Disregard. I was using the wrong ip address. So now i have it working fine and I've got to say it's pretty cool. Is there anyway to actually open up programs on my host machine from my droid? Or can I just use the shell?
 
What I do is use connectbot to start the ssh connection and set up the port forwarding to create a SOCKS connection. From there I tell the host machine to start a VNC server over the SOCKS port. On the phone I use the androidvnc viewer (free download in the market) to access the VNC server and thus I can see do anything on my host machine directly from my droid and it's all still encrypted through the SSH tunnel. The hardware keyboard is very helpful for this, however if you're going to be doing it a lot I recommend a bluetooth keyboard for the phone, that way the keys are larger and it's easier to give commands to the host machine (just make sure you get one that works with the bluetooth profile on your phone).

If you're going to use the VNC connection wifi does work best as there's a lot of data being sent through and 3g can take a minute to load the graphics.
 
So i'm able to ssh into my ubuntu machine without a problem, but I can't seem to figure out how to a. transfer files with scp, b. connect to my droid through ssh from my ubuntu machine, and c. set up a vpn network. Usually as soon as I post something I figure it out, but just in case any help would be appreciated.
 
So i'm able to ssh into my ubuntu machine without a problem, but I can't seem to figure out how to a. transfer files with scp, b. connect to my droid through ssh from my ubuntu machine, and c. set up a vpn network. Usually as soon as I post something I figure it out, but just in case any help would be appreciated.

a and b require an ssh server running on your droid. connectbot is just a client.

c. separate issue from connectbot, what protocol vpn are you trying to setup?

For a workaround for a you can use andftp app
 
thanks for your answer holmes6. I install dropbear and dropbearkeygen without a problem. The server seems to be running, the only problem is i don't know my uid to ssh into my droid. Anyway i can find that out?
 
If you know the local IP address you can try to ssh to it at port 22
I'm guessing that fails..
if this were full linux I'd say run
netstat -nlp
and check for your ssh app and make sure it's bound on port 22, I don't know if that will return anything here though.. maybe busybox netstat -nlp
sorry for likely dead end commands
 
Back
Top