The Motorola Development Community


Go Back   MotorolaFans.com Forums > Motorola EZX Phones > A1200 General Chat
Notices

A1200 General Chat Motorola A1200 is one of Motorola's most popular EZX phone with a clear transparent flip and 2 megapixel camera.

Reply

MotoFans NWBE

Join Date: Nov 2008
Posts: 18
Thanks: 3
Thanked 0 Times in 0 Posts
Location: Novi Sad, Serbia

Quote  
#1
11-19-2008
Default A1200 telnet problem

Hi there.

I'm trying to telnet into my A1200 so I could install sshd and start poking Montevista

But, strange things happen.

I've installed netcontrol_0.2b package and with it I turned inetd. USB mode is usbnet. Phone's IP is 192.168.1.2.

On the computer side:

Code:
# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr 6e:4c:34:33:4a:d6  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
Code:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.2     0.0.0.0         255.255.255.255 UH    0      0        0 usb0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 usb0
Code:
$ nmap 192.168.1.2

Starting Nmap 4.62 ( http://nmap.org ) at 2008-11-19 10:03 CET
Interesting ports on 192.168.1.2:
Not shown: 1714 closed ports
PORT   STATE SERVICE
23/tcp open  telnet

Nmap done: 1 IP address (1 host up) scanned in 1.790 seconds
But when I try to actually get to the phone, this happens:

Code:
$ telnet 192.168.1.2
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
Connection closed by foreign host.
Do you have any idea? I don't. Maybe I need to install some other package?
Reply With Quote


User Information
Current Phone: A1200e
Firmware: R541_G_11.50.34P
Location: Novi Sad, Serbia

kotnik is offlineReport Post
MotoFans XPRT

Casper's Avatar

Join Date: Sep 2007
Posts: 371
Thanks: 1
Thanked 21 Times in 20 Posts
Location: Cape Town, South Africa

Send a message via MSN to Casper Send a message via Skype™ to Casper
Quote  
#2
11-19-2008
Default

I use something called MOTnet I found somewhere on these forums. I connect phone to pc, in modem mode, then click the MOTnet icon. then in cmd i type "telnet 192.168.16.2" - this may not be the same for you! then it asks for a login password and i type root, and viola. This is on windows XP though.

Last edited by Casper; 11-19-2008 at 03:37 PM.
Reply With Quote


User Information
Current Phone: Motorola E398, Motorola A1200(r), HTC (P3700) Touch Diamond
Firmware: Generic 25P
Location: Cape Town, South Africa

Casper is online nowReport Post
MotoFans XPRT

Join Date: Oct 2007
Posts: 255
Thanks: 8
Thanked 15 Times in 15 Posts
Location: Portland, OR

Quote  
#3
11-19-2008
Default

Quote:
Originally Posted by kotnik View Post
But when I try to actually get to the phone, this happens:

Code:
$ telnet 192.168.1.2
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
Connection closed by foreign host.
Do you have any idea? I don't. Maybe I need to install some other package?
I get the same error when trying to telnet, but cygwin ssh to the ming works. I guess they want the more secure method. I installed ssh on the Ming without using telnet, obviously. I think I used a combination of mass storage mode and ekonsole to set up the keys. I say "I think" because I did it a year ago and am not sure.
Reply With Quote


User Information
Current Phone: A1200r
Firmware: 32P-OENT "XP Windows" monsterpack
Location: Portland, OR

PaulF is online nowReport Post
MotoFans NWBE

Join Date: Nov 2008
Posts: 18
Thanks: 3
Thanked 0 Times in 0 Posts
Location: Novi Sad, Serbia

Quote  
#4
11-20-2008
Default

Thanks for replies

I'll try to find and use MOTnet or try to setup SSH without working telnet.
Reply With Quote


User Information
Current Phone: A1200e
Firmware: R541_G_11.50.34P
Location: Novi Sad, Serbia

kotnik is offlineReport Post
MotoFans MODR

intermario_gr's Avatar

Join Date: Jul 2008
Posts: 202
Thanks: 21
Thanked 31 Times in 23 Posts
Location: Greece

Quote  
#5
11-20-2008
Default

@kotnik
I use this package --> http://www.motorolafans.com/forums/a...smbd_inetd.zip

to telnet to my phone successfully. Something doesn't look right in what you said before, kotnik. You mentioned that your phone's IP is 192.168.1.2. However, I'd expect it to be 192.168.16.2. Did you mistype the IP, perhaps?

Last edited by intermario_gr; 11-20-2008 at 11:23 PM.
Reply With Quote


User Information
Current Phone: Motorola A1200e
Firmware: R541_G_11.52.12R_F4
Location: Greece

intermario_gr is offlineReport Post
MotoFans NWBE

Join Date: Nov 2008
Posts: 18
Thanks: 3
Thanked 0 Times in 0 Posts
Location: Novi Sad, Serbia

Quote  
#6
11-21-2008
Default

No, that's the IP, at least that what netcontrol says

And if I nmap it, I can clearly see telnet open.

I'll try that package you suggested me, and see if it works for me. Thanks
Reply With Quote


User Information
Current Phone: A1200e
Firmware: R541_G_11.50.34P
Location: Novi Sad, Serbia

kotnik is offlineReport Post
Linux Geek

marcolnx's Avatar

Join Date: May 2008
Posts: 107
Thanks: 16
Thanked 13 Times in 12 Posts
Location: italy

Quote  
#7
11-21-2008
Default

hi @all
for winzoz and linux:
first install MOTnet.pkg (just remove .zip and install)
better if you install busybox so you can run more command under win (like vi free ecc.)

for linux:
put the phone in USBmode -> modem
connect with usb cable the phone to pc
In linux you need the zaurus modules (in sidux there is):
# modprobe zaurus
in the phone now clic icon MOTnet
open a shell and run like root:
# ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900
# telnet 192.168.1.2
when asked for login just insert root

for win ( like Casper sayd ):
put the phone in USBmode -> modem
connect with usb cable the phone to pc
in the phone now clic icon MOTnet
open a terminal -> start run insert cmd
telnet 192.168.16.2
when asked for login just insert root
after connect may be better if you installed busybox and you don't find a command, make a try with busibox:
# busybox free (just like es.)
By
Attached Thumbnails
a1200-telnet-problem-linux.png  a1200-telnet-problem-winzoz.png  
Attached Files
File Type: zip motnet.pkg.zip (382.3 KB, 19 views)
Reply With Quote


User Information
Current Phone: a1200i
Firmware: WhiteMING1
Location: italy

marcolnx is online nowReport Post
The Following User Says Thank You to marcolnx For This Useful Post:
kotnik (4 Weeks Ago)
The Procrastinator

Konig's Avatar

Join Date: May 2007
Posts: 1,672
Thanks: 91
Thanked 171 Times in 116 Posts
Location: Mumbai

Send a message via MSN to Konig
Quote  
#8
11-21-2008
Default

For anyone who gets to telnet successfully in Linux, could you please write a complete tutorial on how to? I dont have a linux machine, not experienced
something on the lines of this: **Guide to Telnet into the E6**
__________________


Last edited by Konig; 11-21-2008 at 04:17 PM.
Reply With Quote


User Information
Current Phone: Motorokr E6
Firmware: Konig's .06p
Location: Mumbai

Konig is online nowReport Post
MotoFans NWBE

Join Date: Oct 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Location: Holyoke, MA

Quote  
#9
11-27-2008
Default inetd.conf is broken

There's something broken in the netcontrol package, at least it was on mine. I had the same problem (also run linux, but that shouldn't matter).

Netcontrol's inetd.conf file points looks in the wrong location for tcpd and in.telnetd.

netcontrol/inetd/inetd.conf:
Code:
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#ftp	stream	tcp	nowait	root	/usr/sbin/tcpd	in.ftpd
telnet	stream	tcp	nowait	root	/mmc/mmca1/.system/QTDownLoad/inetd/tcpd	/mmc/mmca1/.system/QTDownLoad/inetd/in.telnetd
The tools it needs are actually in /mmc/mmca1/.system/QTDownLoad/netcontrol/inetd/

There are a number of ways to fix this:
1. Extract netcontrol_0.2b.pkg (.pkg == .tar.gz), edit inetd.conf to reflect the correct path, repackage it, and reinstall to your phone
2. Create /mmc/mmca1/.system/QTDownLoad/inetd and copy tcpd and in.telnetd there
3. Edit inetd.conf using vim under eKonsole
Reply With Quote


User Information
Current Phone: Motorola A1200
Firmware: Amin's Extreme Elite
Location: Holyoke, MA

MetalWanderer is offlineReport Post
Linux Geek

marcolnx's Avatar

Join Date: May 2008
Posts: 107
Thanks: 16
Thanked 13 Times in 12 Posts
Location: italy

Quote  
#10
11-27-2008
Default

@MetalWanderer
Thanks for check netcontrol_02b.pkg and repoting bug and solution.
I don't check.
Just installing motnet.pkg run fine without need for netcontrol.
By
Reply With Quote


User Information
Current Phone: a1200i
Firmware: WhiteMING1
Location: italy

marcolnx is online nowReport Post
Reply

Tags
a1200, problem, telnet

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another telnet problem AplqQ A780 General Chat 7 07-11-2008 10:20 PM
Telnet problem qualityking E6 General Chat 12 12-26-2007 11:16 AM
A problem with telnet khizerk E6 General Chat 0 08-10-2007 06:56 PM
Telnet problem with ROKR E6 jaga_m E6 General Chat 2 06-04-2007 04:07 PM
problem using ubuntu telnet to e680i doromoji E680i General Chat 3 02-01-2006 09:07 AM


All times are GMT. The time now is 01:38 PM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.