Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I am attempting to telnet from my Ubuntu commandline to my Android phone and pad using the following syntax:

> telnet 192.168.0.4 

Trying 192.168.0.4... 

telnet: Unable to connect to remote host: Connection refused

But, I get that error message above when I try both devices.

Can anyone help with this?

share|improve this question
1  
Are you running a telnet server on the Android device? Which one? –  onik Jun 16 '12 at 19:07
    
I am just executing telnet from Ubuntu on my laptop –  sisko Jun 16 '12 at 19:53
add comment

2 Answers

Android does not include a telnet daemon. Use the included android debug bridge (meant for development or power users). It comes with the official SDK ( http://developer.android.com/sdk/ ).

  • Install both "tools" packages
  • Enable USB debugging in your phone settings
  • run ./platform-tools/adb shell in yor sdk folder (needs approprate USB rights for your phone)

You then have a local shell on your phone.

If you definitely need access over network install an ssh server app (search play store for SSHDroid or QuickSSHd). You might want a secure shell server on a mobile device that connects to multiple maybe unsafe networks like public hotspots.

share|improve this answer
1  
For the record adb can work wirelessly. –  Richard Borcsik Jun 21 '12 at 15:53
1  
Yes, you're right. It's however not very secure and needs to be switched on after every boot therefore (that's why I omitted it in my original post) –  ce4 Jun 21 '12 at 16:04
    
It's like a bomb waiting to blow up :) I'm pretty sure that's why they make you enable it after reboots. –  Richard Borcsik Jun 21 '12 at 16:18
1  
+1 for SSH, highly recommended instead of telnet. –  onik Jun 27 '12 at 12:08
add comment

An alternative to the former answer is installing Terminal IDE. Its really nice, but read the description to consider stuff like:

NB: This app CANNOT be installed onto the SDCard because you do not get 'Execute' permissions on that mount. It must run in this app's private memory on the device [Also much more secure]. You can of course still read / write to the SDCard and store files there. ALSO - once extracted it takes up about 100MB. You have been warned.

share|improve this answer
1  
LOL, has even a telnetd included, but comes with a hefty price: 32MB. It's also a full Development Kit for Android, you might better try this tinier app: play.google.com/store/apps/details?id=jackpal.androidterm (it comes included with many ROMs) –  ce4 Jun 27 '12 at 15:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.