View Full Version : problem with telnetd

07-23-2003, 12:22 PM
I am working with Knoppix system V3.2-06-06 booted from CD on PC computer. My problem is unfunctional remote login throuh telnet from another PC in our intranet net with Windows98. I have uncomented the preprepared line in /etc/inetd.conf like this:

telnets stream tcp nowait sslwrap.sslwrap /usr/sbin/tcpd /usr/sbin/sslwrap -nocert -addr -port 23

I have restarted inetd using kill -1 <process number>

Command : telnet <IP adress> replied:

Trying <IP adress>...
telnet: Unable to connect to remote host: Connection refused

Then I have added new line in default inetd.conf file like this:

telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd

restart inetd and command : telnet <IP adress> replied

Trying <IP adress>...
Connected to <ip adress>.
Escape character is '^]'.
Error loading /usr/lib/ssl/certs/telnetd.pem: 5135:error:02001002:system library:fopen:No such file or directory:bss_file.c:259:fopen('/usr/lib/ssl/certs/telnetd.pem','r')
5135:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:261:
5135:error:140C8002:SSL routines:SSL_use_certificate_file:system lib:ssl_rsa.c:101:

do_ssleay_init() failed
Connection closed by foreign host.

This is the same like:

root@ttyp0[etc]# in.telnetd -debug 23
Error loading /usr/lib/ssl/certs/telnetd.pem: 5259:error:02001002:system library:fopen:No such file or directory:bss_file.c:259:fopen('/usr/lib/ssl/certs/telnetd.pem','r')
5259:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:261:
5259:error:140C8002:SSL routines:SSL_use_certificate_file:system lib:ssl_rsa.c:101:

do_ssleay_init() failed

What can I do to solve my problem? :(

08-14-2003, 06:15 PM
I have the same problem. Any suggestions?

08-15-2003, 06:02 PM
I finally got telnet to work on Knoppix 3.2 HD install. Apparently, if one has SSL installed then atleast one certificate is needed or a "dummy certificate" will also do. This is the telnetd.pem file that is reported missing.

Here is what I had to do as root:

cd /usr/lib/ssl/certs
openssl req -new -x509 -nodes -out telnetd.pem -keyout telnetd.pem

After this test "telnet localhost" and it should work.

08-25-2003, 08:17 AM
Thank you very much. It works OK. :D :D

12-06-2003, 06:09 PM
I can get telnet to work to the localhost with this, but remote hosts are refused. Any ideas?

01-26-2005, 01:46 PM
i had the same problem as mentioned above. first thanks for the help with ssl, however you found out :)

to allow remote hosts, you have to alter the file /etc/hosts.allow .
after installing knoppix 3.7 the last line of this file showed up like this:


i changed the DENY to ALLOW, so i suppose it means all hosts are allowed now.

for me this works fine..