LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2002, 11:15 PM   #1
sLiCk
LQ Newbie
 
Registered: Nov 2002
Posts: 4

Rep: Reputation: 0
Question Telnet Installation


My first time seeing and using linux. Seems fantastic, though I just installed Mandrake 9 and having trouble trying to install Telnet.
Can someone please explain how to install it !
Much appreciated.
 
Old 11-04-2002, 11:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
I would advise against using telnet, its insecure and a security risk. You might want to look into using ssh. www.openssh.org
 
Old 11-05-2002, 03:52 AM   #3
sLiCk
LQ Newbie
 
Registered: Nov 2002
Posts: 4

Original Poster
Rep: Reputation: 0
Yes I know its not secure but I'm using it for a file server on a LAN.

I just need to know how to install telnet on mandrake 9.
 
Old 11-05-2002, 05:22 AM   #4
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I would think that it is a default program for most distro's. go to the command line and type "telnet".

If you don't got it, there will probably be a package somewhere on the mandrake cd's... rpm's I'm guessing? Or you could install it from sources. Here's a link for the download:

ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-0.17.tar.gz

to install only the client you'll have to unpack the sources, go to the source directory and do this:

./configure
cd telnet
make install

But like trickykid said... it's much better to use ssh.... why not install sshd on the server?

well, good luck

-Adam
 
Old 11-05-2002, 06:30 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
please search this site for "telnet disable no" for all the standard answers
 
Old 11-06-2002, 01:14 AM   #6
sLiCk
LQ Newbie
 
Registered: Nov 2002
Posts: 4

Original Poster
Rep: Reputation: 0
thanks adam_boz
I tired installing telnet as you described but I keep on getting this error

main.cc In function void usage
main.cc92 exit undeclared (first use this function)
main.cc92 (each undeclared identifier is reported only once for each function it appears in)
make:xxx [main.o] error 1

what does it mean?
 
Old 11-06-2002, 02:11 AM   #7
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
You probably need a patch. The instructions I gave you were from the BLFS doc's, and they point to a patch here:

ftp://ftp.linuxfromscratch.org/blfs-patches/CVS

get the netkit-telnet-gcc31.patch

that is, of course, if you have gcc3.1 do "gcc -v" to see if you do. If not, you are probably going to have to search around for the correct patch.

to apply it, start with clean sources. put the patch in the top level of the sources and do this (after cd'ing into the top level)

patch -Np1 -i netkit-telnet-gcc31.patch

then continue just like before.

If that doesn't work, I'm sure that there is a telnet package that comes with mandrake... just do some searching around on the cd's, here, or on google and you will probably find what you're looking for.

that's pretty lame that it isn't on by default though... almost like not putting on "ping" or something.

well, good luck... and I hope the password you're using isn't the one you have for your pc's logon

-Adam
 
Old 11-06-2002, 04:14 AM   #8
sLiCk
LQ Newbie
 
Registered: Nov 2002
Posts: 4

Original Poster
Rep: Reputation: 0
No it's not the same password for my pc logon
I checked the drakxservices and its says the telnet service is running, but when I check init.d dir theres no sign on any telnet service.
I tired to telnet through my windoze box using putty but it won't make a connection.
I can ping my linux box and vice versa.
 
Old 11-06-2002, 01:35 PM   #9
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
ooh... so you are hosting the telnet server? ok.... there can be a couple of problems if you can't telnet in:

1) the service isn't running (duh ;-). The telnet server will probably be run through either the inetd or xinetd daemons. check out /etc/xinetd.conf or /etc/inetd.conf and check if there is anything in there about telnetd. (these services would be started from the rcx.d script.... that's probably why you don't see a telnet script in there)

2) The system isn't allowing incomming telnet connections. This could be due to a firewall issue, or an access configuration issue. I'm thinking that if you can't even get to a login prompt, that it's probably a firewall issue... although if it is set not to allow your host telnet access, it probably still won't give you a login prompt.

do a "man telnetd" and read up on the access configuration, and if that is all o.k., you are probably going to have to deal w/ firewall issues.

I can't really help you more than that... I don't really have much experience administrating servers.....

If you are administrating the server, why not put sshd on instead? there are windows clients out there ( I think www.openssh.org has some).
 
Old 11-06-2002, 01:39 PM   #10
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
If you want to try out sshd, here's some instructions from the beyond LFS doc's (no patches needed here :-)

you might need to tweek this to fit your system. The startup script is put in /etc/rc.d/init.d/ here, and the prefix is /usr (that is probably fine) and you might already have /var/empty...

get the package from here:

http://sunsite.ualberta.ca/pub/OpenB...h-3.4p1.tar.gz

some pre-install measures:

mkdir /var/empty &&
chown root:sys /var/empty &&
groupadd sshd &&
useradd -g sshd sshd

and the install:

./configure --prefix=/usr --sysconfdir=/etc/ssh \
--libexecdir=/usr/sbin --with-md5-passwords &&
make &&
make install

and the startup script:

#!/bin/sh
# Begin $rc_base/init.d/sshd

# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org

source /etc/sysconfig/rc
source $rc_functions

case "$1" in
start)
echo "Starting SSH Server..."
loadproc sshd
;;

stop)
echo "Stopping SSH Server..."
killproc sshd
;;

reload)
echo "Reloading SSH Server..."
reloadproc sshd
;;

restart)
$0 stop
sleep 1
$0 start
;;

status)
statusproc sshd
;;

*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit 1
;;
esac

# End $rc_base/init.d/sshd

then make the script bootable:

chmod 755 /etc/rc.d/init.d/sshd

and make the necessary symlinks:
## watch out here... you might already have a K30 or S30 in your scripts

cd /etc/rc.d/init.d &&
ln -sf ../init.d/sshd ../rc0.d/K30sshd &&
ln -sf ../init.d/sshd ../rc1.d/K30sshd &&
ln -sf ../init.d/sshd ../rc2.d/K30sshd &&
ln -sf ../init.d/sshd ../rc3.d/S30sshd &&
ln -sf ../init.d/sshd ../rc4.d/S30sshd &&
ln -sf ../init.d/sshd ../rc5.d/S30sshd &&
ln -sf ../init.d/sshd ../rc6.d/K30sshd

Last edited by adam_boz; 11-06-2002 at 01:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet problems with Linux German Installation satishy Linux - Enterprise 2 10-28-2005 05:08 PM
How do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 01:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 06:13 AM
Telnet installation saravanan1979 Linux - Networking 2 05-06-2002 09:50 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 03:33 PM


All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration