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. |
I would advise against using telnet, its insecure and a security risk. You might want to look into using ssh. www.openssh.org
|
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. |
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 |
please search this site for "telnet disable no" for all the standard answers
|
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? |
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 |
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. |
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). |
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 |
All times are GMT -5. The time now is 12:30 AM. |