telnetd on embedded sys - me too

Hello everyone,

I’m trying to get an x86 (PC104) based system configured with Neutrino to
allow the system to be accessed via the network interface. We need to be
able to perform maintenance work and software updates on the system without
swapping the flash cards. Unfortunately we can’t rely on QNX’s excellent
native networking abilities, as many of our customers will be working with
Windows systems.
My thought therefore, is to include ftpd and telnetd in the embeddes system
to allow files to be downloaded to the target and to be able to set the
permissions of the files, and do other maintenance work we would use a
telnet session.
First off, will this work? Or am I overlooking another, simpler and more
elegant solution to this problem?
2nd my initial attempts to get telnetd correctly working have failed. Which
tcpip driver is needed, or is this important at all. I am currently using
the tiny tcpip stack, and wonder if it doesn’t support some things needed to
run telnet.

Any help given is greatly appreciated.

Regards,
Jason

Jason Wycoff <jason@socratec.de> wrote:

Hello everyone,

I’m trying to get an x86 (PC104) based system configured with Neutrino to
allow the system to be accessed via the network interface. We need to be
able to perform maintenance work and software updates on the system without
swapping the flash cards. Unfortunately we can’t rely on QNX’s excellent
native networking abilities, as many of our customers will be working with
Windows systems.
My thought therefore, is to include ftpd and telnetd in the embeddes system
to allow files to be downloaded to the target and to be able to set the
permissions of the files, and do other maintenance work we would use a
telnet session.
First off, will this work? Or am I overlooking another, simpler and more
elegant solution to this problem?
2nd my initial attempts to get telnetd correctly working have failed. Which
tcpip driver is needed, or is this important at all. I am currently using
the tiny tcpip stack, and wonder if it doesn’t support some things needed to
run telnet.

The tiny stack supports both telnet[d] and ftp[d]. Off the top of my head:

ftpd:

  • inetd
  • /etc/inetd.conf
  • /etc/services
  • /etc/shells ?
  • libsocket.so.2

telnetd:

  • inetd
  • /etc/inetd.conf
  • /bin/login
  • /etc/passwd
  • /etc/group
  • /etc/shadow
  • devc-pty
  • libsocket.so.2

If you’re still having problems, please post the specific error.

-seanb

Hi Sean,
thanks for the help.

When I try to login via telnet from my QNX development box to the target
system, I’m given the username prompt and password prompt, but as soon as I
enter the password the connection is terminated with the message “connection
closed by host”. On the target side, the only visible message is “going
down on signal 18”.
When I look at your list, I think I’ve got everything which you’ve listed
there. I had to correct the missing devc-pty, but that was a long time ago
and doesn’t seem to cause the problems. I’ve taken a look at the terminfo
stuff, and am wondering if something might not quite be correct there, but
unfortunately I’m a super-green newbie to this stuff and the documentation
is more than lacking for someone with my experience. Whether through luck
or through just a little better documention I did get ftpd working, now if I
can just get telnetd running I’ll be home-free.

Please let me know if you think of anything that might help.

Regards,
Jason

The tiny stack supports both telnet[d] and ftp[d]. Off the top of my
head:

ftpd:

  • inetd
  • /etc/inetd.conf
  • /etc/services
  • /etc/shells ?
  • libsocket.so.2

telnetd:

  • inetd
  • /etc/inetd.conf
  • /bin/login
  • /etc/passwd
  • /etc/group
  • /etc/shadow
  • devc-pty
  • libsocket.so.2

If you’re still having problems, please post the specific error.

-seanb

Hi Sean,

your tips paid off. After looking at my embedded system, I noticed that the
sh link to a real shell was missing. Once that was in place I got things
working between two QNX machines. After searching around a bit more, I added
more of the termcap files to the embedded system and to my amazement, it
then starting working from a windows machine too.
Thanks a bunch for your help.

Cheers,
Jason

“Sean Boudreau” <seanb@qnx.com> wrote in message
news:ahjtdg$cq1$1@nntp.qnx.com

Jason Wycoff <> jason@socratec.de> > wrote:
Hello everyone,

I’m trying to get an x86 (PC104) based system configured with Neutrino
to
allow the system to be accessed via the network interface. We need to
be
able to perform maintenance work and software updates on the system
without
swapping the flash cards. Unfortunately we can’t rely on QNX’s
excellent
native networking abilities, as many of our customers will be working
with
Windows systems.
My thought therefore, is to include ftpd and telnetd in the embeddes
system
to allow files to be downloaded to the target and to be able to set the
permissions of the files, and do other maintenance work we would use a
telnet session.
First off, will this work? Or am I overlooking another, simpler and more
elegant solution to this problem?
2nd my initial attempts to get telnetd correctly working have failed.
Which
tcpip driver is needed, or is this important at all. I am currently
using
the tiny tcpip stack, and wonder if it doesn’t support some things
needed to
run telnet.

The tiny stack supports both telnet[d] and ftp[d]. Off the top of my
head:

ftpd:

  • inetd
  • /etc/inetd.conf
  • /etc/services
  • /etc/shells ?
  • libsocket.so.2

telnetd:

  • inetd
  • /etc/inetd.conf
  • /bin/login
  • /etc/passwd
  • /etc/group
  • /etc/shadow
  • devc-pty
  • libsocket.so.2

If you’re still having problems, please post the specific error.

-seanb