[linux] Nefunguje telnet

JoJo LASER cerny na ns.spnv.sk
Pondělí Leden 17 15:22:42 CET 2000


> >    No a teraz k tomu problemu. Chcel by som sa na server napojit cez
> > telnet (WIN95), ale neviem ako resp. mi to nefunguje. Skusal som sa
> > napojit aj cez ns.spnv.sk aj spnv.sk. Je potrebne na tom serveri este
> > nieco nastavit. Pristup na roota mam.
> 
>     Hlavne skontroluj v /etc/ined.conf ci mas vobec povoleny telnet.
> Teda mal by tam byt riadok bodobny tomuto:
> telnet    stream    tcp nowait    root    /usr/sbin/telnetd     in.telned

ano to bolo zakomentovane, tak som to odkomentoval. Rozdiel je ten ze
miesto /usr/sbin/telnetd je tam /usr/sbin/tcpd (ten subor telnetd tam ani 
nie je).

V com moze byt problem. Napojit som sa chcel z ineho klientskeho pocitaca,
na ktorom je nastavene tpc/ip, ktore funguje.

Siet je asi takto

tel.linka --- router --(16)-- hub --(2)-- server(e-mail)
                                  --(uplink)-- hub --- klient
                                                   --- klient2
                                                       .
                                                       .
                                                       .
                                                   --- klient5
                                                   --- hub --- klient6
                                                               .
                                                               .
                                                               .
                                                           --- klient11

Na klientovy 2 sa chcem pripojit (je tam win95). Spustim telnet a do
Vzdialeny system napisem ns.spnv.sk. Co este treba nastavit?

Pre istotu pripajam aj spominany inetd.conf
------------- další část ---------------
#
# inetd.conf	This file describes the services that will be available
#		through the INETD TCP/IP super server.  To re-configure
#		the running INETD process, edit this file, then send the
#		INETD process a SIGHUP signal.
#
# Version:	@(#)/etc/inetd.conf	3.10	05/27/93
#
# Authors:	Original taken from BSD UNIX 4.3/TAHOE.
#		Fred N. van Kempen, <waltje na uwalt.nl.mugnet.org>
#
# Modified for Debian Linux by Ian A. Murdock <imurdock na shell.portal.com>
#
# Modified for RHS Linux by Marc Ewing <marc na redhat.com>
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# Echo, discard, daytime, and chargen are used primarily for testing.
#
# To re-read this file after changes, just do a 'killall -HUP inetd'
#
#echo	stream	tcp	nowait	root	internal
#echo	dgram	udp	wait	root	internal
#discard	stream	tcp	nowait	root	internal
#discard	dgram	udp	wait	root	internal
#daytime	stream	tcp	nowait	root	internal
#daytime	dgram	udp	wait	root	internal
#chargen	stream	tcp	nowait	root	internal
#chargen	dgram	udp	wait	root	internal
#
# These are standard services.
#
#ftp	stream	tcp	nowait	root	/usr/sbin/tcpd	in.ftpd -l -a

#this line changed by JoJo LASER
telnet	stream  tcp 	nowait  root    /usr/sbin/tcpd	in.telnetd

#gopher	stream  tcp 	nowait  root    /usr/sbin/tcpd	gn

# do not uncomment smtp unless you *really* know what you are doing.
# smtp is handled by the sendmail daemon now, not smtpd.  It does NOT
# run from here, it is started at boot time from /etc/rc.d/rc#.d.
#smtp	stream  tcp 	nowait  root    /usr/bin/smtpd	smtpd
#nntp	stream	tcp	nowait	root	/usr/sbin/tcpd	in.nntpd
#
# Shell, login, exec and talk are BSD protocols.
#
#shell	stream	tcp	nowait	root	/usr/sbin/tcpd	in.rshd
#login	stream	tcp	nowait	root	/usr/sbin/tcpd	in.rlogind
#exec	stream	tcp	nowait	root	/usr/sbin/tcpd	in.rexecd
#talk	dgram	udp	wait	root	/usr/sbin/tcpd	in.talkd
#ntalk	dgram	udp	wait	root	/usr/sbin/tcpd	in.ntalkd
#dtalk	stream	tcp	waut	nobody	/usr/sbin/tcpd	in.dtalkd
#
# Pop and imap mail services et al
#
#pop-2   stream  tcp     nowait  root    /usr/sbin/tcpd	ipop2d
pop-3   stream  tcp     nowait  root    /usr/sbin/tcpd	ipop3d
#imap    stream  tcp     nowait  root    /usr/sbin/tcpd	imapd
#
# The Internet UUCP service.
#
#uucp	stream	tcp	nowait	uucp	/usr/sbin/tcpd	/usr/lib/uucp/uucico	-l
#
# Tftp service is provided primarily for booting.  Most sites
# run this only on machines acting as "boot servers." Do not uncomment
# this unless you *need* it.  
#
#tftp	dgram	udp	wait	root	/usr/sbin/tcpd	in.tftpd
#bootps	dgram	udp	wait	root	/usr/sbin/tcpd	bootpd
#
# Finger, systat and netstat give out user information which may be
# valuable to potential "system crackers."  Many sites choose to disable 
# some or all of these services to improve security.
#
# cfinger is for GNU finger, which is currently not in use in RHS Linux
#
#finger	stream	tcp	nowait	root	/usr/sbin/tcpd	in.fingerd
#cfinger stream	tcp	nowait	root	/usr/sbin/tcpd	in.cfingerd
#systat	stream	tcp	nowait	guest	/usr/sbin/tcpd	/bin/ps	-auwwx
#netstat	stream	tcp	nowait	guest	/usr/sbin/tcpd	/bin/netstat	-f inet
#
# Time service is used for clock syncronization.
#
#time	stream	tcp	nowait	nobody	/usr/sbin/tcpd	in.timed
#time	dgram	udp	wait	nobody	/usr/sbin/tcpd	in.timed
#
# Authentication
#
#auth   stream  tcp     nowait    nobody    /usr/sbin/in.identd in.identd -l -e -o
#
# End of inetd.conf

#linuxconf stream tcp wait root /bin/linuxconf linuxconf --http


Další informace o konferenci linux