AnsweredAssumed Answered

telnetd not working on imx6 sabrelite rev d board, need help..

Question asked by Sharath Kurudi on Nov 25, 2012
Latest reply on Nov 26, 2012 by Sharath Kurudi

I have a rev D version of sabrelite imx6 board. I need to make telnetd function. I built the rootfs with telnetd enabled (through busybox config) I have made the following changes

1) In /etc/inetd.conf file changed the line

telnet  stream  tcp     nowait  root    /usr/sbin/telnetd       telnetd -i

  to

telnet  stream  tcp     nowait  root    /sbin/telnetd       telnetd -i -l /bin/login

 

since telnetd binary is present in /sbin/directory

 

2) created /dev/pts directory and mounted devpts filesystem by command

  mount -t devpts devpts /dev/pts

 

3) Our kernel supports UNIX98_PTYS , I verified through config file.

 

I have a ext2 root file system. On shell prompt. I executed the following commands

 

1) inetd -f &

  2) ifconfig eth0 10.162.100.214 up

 

From the host I tried connecting through

 

telnet 10.162.100.214

 

I get the following output

Trying 10.162.100.214...

Connected to 10.162.100.214.

Escape character is '^]'.

 

I don't get the login prompt. It gets stuck at the above point.

 

I also tested with the following change in inetd.conf file

 

telnet  stream  tcp     nowait  root    /sbin/telnetd       telnetd  -l /bin/login

without the -i option the connection breaks, i.e I get the following output

Trying 10.162.100.214...

Connected to 10.162.100.214.

Escape character is '^]'.

Connection closed by foreign host


Is there anything I am missing? Please help

Outcomes