Forum Discussion
Altera_Forum
Honored Contributor
20 years agotelnetd:all network ports in use.
i make a newsimple services file,and I can run inetd.
this is my services file: <div class='quotetop'>QUOTE </div> --- Quote Start --- ftp-data 20/tcp ftp 21/tcp telnet 23/tcp uptime 24/tcp http 80/tcp[/b] --- Quote End --- but I can't use telnet on a pc to connect my board. it saied: <div class='quotetop'>QUOTE </div> --- Quote Start --- telnetd:all network ports in use.[/b] --- Quote End ---netstat <div class='quotetop'>QUOTE </div> --- Quote Start --- tcp 0 0 218.192.170.81:telnet 218.192.170.250:3520 TIME_WAIT[/b] --- Quote End --- and i run ps ps i can see "inetd",but i can't see telnetd. why it say "telnetd:all network ports in use." how can i do? my inetd.conf file: <div class='quotetop'>QUOTE </div> --- Quote Start --- ftp stream tcp nowait root /bin/ftpd telnet stream tcp nowait root /bin/telnetd uptime stream tcp nowait root cat /proc/uptime /etc/issue[/b] --- Quote End --- and in my fstab file also has the pts <div class='quotetop'>QUOTE </div> --- Quote Start --- devpts /dev/pts devpts defaults,gid=5,mode=620 0 0[/b] --- Quote End --- 4 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by phill@Apr 9 2006, 05:53 PM i make a newsimple services file,and i can run inetd.this is my services file:
<div class='quotetop'>quote
--- quote end ---
--- quote start ---
ftp-data 20/tcp
ftp 21/tcp
telnet 23/tcp
uptime 24/tcp
http 80/tcp --- Quote End --- but I can't use telnet on a pc to connect my board. it saied: <div class='quotetop'>QUOTE </div> --- Quote Start --- telnetd:all network ports in use.[/b] --- Quote End ---
<div class='quotetop'>QUOTE </div> --- Quote Start --- tcp 0 0 218.192.170.81:telnet 218.192.170.250:3520 TIME_WAIT[/b] --- Quote End --- and i run psnetstat
i can see "inetd",but i can't see telnetd. why it say "telnetd:all network ports in use." how can i do? my inetd.conf file: <div class='quotetop'>QUOTE </div> --- Quote Start --- ftp stream tcp nowait root /bin/ftpd telnet stream tcp nowait root /bin/telnetd uptime stream tcp nowait root cat /proc/uptime /etc/issue[/b] --- Quote End --- and in my fstab file also has the pts <div class='quotetop'>QUOTE </div> --- Quote Start --- devpts /dev/pts devpts defaults,gid=5,mode=620 0 0[/b] --- Quote End --- <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14160)</div> [/b] --- Quote End --- after some google search, you may need these in uClinux-dist-test menuconfig, clean and rebuildpstelnetd telnetd does not use openpty() (NEW) - Altera_Forum
Honored Contributor
you should config kernel, with,
Device Drivers --> Character devices --> [*] Legacy (BSD) PTY support (10) Maximum number of legacy PTY in use you should use inetd from ~/apps/inetd, and use telnetd from ~/uClinux-dist-test/user/telnetd - Altera_Forum
Honored Contributor
after I enabled the BSD PTY devices in menuconfig the message changed from "All network ports in use" to garbage characters. Obviously the device can be opened now but then the telnetd got stuck. What could this be?
- Altera_Forum
Honored Contributor
found out myself,
all is working but I started the telnetd the wrong way. telnetd should be started by inetd and not by invoking /bin/telnetd &. telnetd only shows up in the process list when a session is started from a remote host.