LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   telnet into my machine? (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-into-my-machine-38074/)

matrim 12-11-2002 10:53 PM

telnet into my machine?
 
What needs to be activated so that I or others can telnet/access my box? I remember something about selecting ftp/telnet and firewalls at the time of installation..I have a router setup so when I do a ifconfig, it's connected to the internet via broadband and the router with the addy of 192...etc, but when I try to access the computer from another it won't connect. Is the router causing the problem?

thanks for any/all help


Big --------------> :newbie:


G

born4linux 12-11-2002 11:08 PM

can u ping both ways? was the telnet-server package installed? if yes, you need t0:

1. enable telnet:

/sbin/chkconfig telnet on

2. set you firewall ruleset to allow incoming telnet connections:

lokkit

This is the basic stuff you need to look at first.

kausik 12-11-2002 11:25 PM

If you are on RH7.1 or above
-------------------------------------
Open /etc/xinetd.d/telnet

You will find the following lines:

service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
** disable = yes
}

Change to "disable=no" on the ** ed line.

Look at /etc/services for "telnet".

If you do not find two lines
====
telnet 23/tcp
telnet 23/udp
====
add them.

Thats all to connect to a box via telnet.

Regds,
Kausik

KnightAbel 12-12-2002 12:03 AM

Whoa, another Utah guy. Small world. :p Lokkit isn't included in Red Hat 8.0 though, instead use:

system settings-> security level

if you're not logged in as root, you'll have to type your password, I think you said that you enabled telnet when installing, but it never hurts to check.

also, try 'telnet 127.0.0.1 port' (where port is the port you wish to use) to see if you can telnet the box from the box.

born4linux 12-12-2002 01:25 AM

Quote:

Originally posted by KnightAbel
Lokkit isn't included in Red Hat 8.0 though, instead use:

system settings-> security level


lokkit is still in 8.0:

Searching for lokkit...
CD-1:lokkit-0.50-18.i386.rpm
CD-3:gnome-lokkit-0.50-18.i386.rpm
SOURCE-CD-2:gnome-lokkit-0.50-18.src.rpm

born4linux 12-12-2002 01:27 AM

Quote:

Originally posted by kausik
If you are on RH7.1 or above
-------------------------------------
Open /etc/xinetd.d/telnet

You will find the following lines:

service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
** disable = yes
}

Change to "disable=no" on the ** ed line.

you need to restart xinetd after doing this.

/sbin/service xinetd restart

But /sbin/chkconfig telnet on does this in one step with Red Hat 7.x/8.0 releases

matrim 12-12-2002 01:27 AM

Okay, thanks for the input all!
- For some reason my redhat 8.0 has lokkit, which i ran, but after selecting telnet and even no firewall, the menu reverts back to high security status...in other words its not saving my changes for some reason. With that said, I can telnet out, but can't telnet my local address, so the firewall needs to be fixed..i tried a couple of your suggetions..the -chkconfig telnet on- gave me...error reading information on service telnet: No such file or directory..

Opening /etc/xinetd.d i found no file named telnet either..as for /etc/services i did find telnet 23/tcp
telnet 23/udp

born4linux 12-12-2002 03:55 AM

well, telnet-server is not installed. You need that to server telnet connections.

in RHL 8.0: CD-2:telnet-server-0.17-23.i386.rpm

Or use redhat-config-packages if you want.

trickykid 12-12-2002 07:16 AM

If your telnet isn't installed don't even bother with it, use ssh instead. Telnet is very insecure.

www.openssh.org

KnightAbel 12-12-2002 12:19 PM

Quote:

Originally posted by born4linux
lokkit is still in 8.0:

Searching for lokkit...
CD-1:lokkit-0.50-18.i386.rpm
CD-3:gnome-lokkit-0.50-18.i386.rpm
SOURCE-CD-2:gnome-lokkit-0.50-18.src.rpm

well, it's not installed in mine for some reason then, or maybe it is. I'll have to check more completely. :p But yeah, sorry.

matrim 12-13-2002 08:17 PM

Just wanted to say thanks to all for the help. This place rocks. The linux box is up and running now pretty smoothly, now, on to other things! (see new question)

matrim 12-18-2002 11:55 AM

Sigh,
I spoke too soon :( . It seemed I could telnet my box from my box and from a computer on the same network, but when trying to telnet from out of town or another comp etc it didnt work. I changed all the settings to allow incoming telnets. I did notice that when I changed the security level of the firewall to medium and customized to allow telnet, I clicked okay, but tried again with no luck. I checked the security lvl yet again, and for some reason it reverted back to high security firewall with nothing checked including telnet. Is there a way to permanently change this? I've tried in gnome and lokkit both and both revert back to previous settings..



matrim 12-18-2002 09:16 PM

***
Okay, I neglected to mention that we have a wireless router and my linux box is going through that. That is probably my problem, although I did not have telnet set up in the first place so thanks for helping get that up. So..i have a network address i guess. How can I set that up so i can access from a comp off the network?

michaelk 12-19-2002 07:46 PM

Depending on your router you will need to sets its configuration to allow telnet traffic through to your linux pc. For Linksys routers this requires a static IP for the PC. Setup port forwarding for whatever port and IP you are using.

Assuming you have a dynamic IP you can use one of the many free dynamic ip servers like www.noip.com. A client program on your PC will update the server with your IP address and assigns a hostname (of your choice) to it. Now the rest of the world can access your PC.


All times are GMT -5. The time now is 07:31 AM.