Click to See Complete Forum and Search --> : telnet server?


jjd228
07-06-2003, 06:43 AM
is there a telnet server installed by default that i can start? or do i have to install one seperately?

threadhead
07-06-2003, 06:52 AM
in general there is one installed.

take a look at your /etc/inetd.conf file.
watch out for a line looking like this

#Telnet server
#telnet stream tcp .....

uncomment the second line and reboot.
telnet server should be running.

z0mbix
07-06-2003, 06:53 AM
Yes, it's called ssh - Depending on your distro you may be able to start it with one of the following commands:

/etc/init.d/ssh start
/etc/init.d/sshd start
/etc/rc.d/init.d/sshd start

Of something very similar.

Don't bother using telnet when you can use ssh.

jjd228
07-06-2003, 07:01 AM
great, thank you. so whats the difference between ssh and telnet? i assume theyll both accept terminal connections on port 23? and im using redhat 9, so what would my path be?

z0mbix
07-06-2003, 07:03 AM
Originally posted by jjd228
great, thank you. so whats the difference between ssh and telnet? i assume theyll both accept terminal connections on port 23? and im using redhat 9, so what would my path be?

ssh uses port 22 by default. Read the home page here for more info:

http://www.openssh.org/

MB[DK]
07-06-2003, 07:39 AM
Never, ever use telnet for anything.

Always use SSH.

telnet sends password in clear text, whereas SSH is encrypted.

And you should use ssh 2, I believe ver. 1 isnt secure enough.

serz
07-06-2003, 09:18 AM
Originally posted by jjd228
great, thank you. so whats the difference between ssh and telnet? i assume theyll both accept terminal connections on port 23? and im using redhat 9, so what would my path be?
You shouldn't need anything. You will just need to "ssh ip/host". Ie: ssh localhost

Oh, and btw...if you want to connect from a Windows box I'd suggest you to get PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/), it's a telnet/ssh client.

jjd228
07-06-2003, 01:06 PM
Originally posted by threadhead
in general there is one installed.

take a look at your /etc/inetd.conf file.
watch out for a line looking like this

#Telnet server
#telnet stream tcp .....

uncomment the second line and reboot.
telnet server should be running.

uh... how come i dont have a file named inetd.conf?

serz
07-07-2003, 12:42 AM
Originally posted by jjd228
uh... how come i dont have a file named inetd.conf?
What distro? Mabye it's using xinetd.conf

mrbl0nde
07-07-2003, 01:40 AM
try /etc/xinetd.d/telnet, obviously for telnet.

sshd is different. it should be installed as a daemon in /etc/init.d/sshd. if it's there, initiate it by the following:

# /etc/init.d/sshd start

you can control access to the ssh server via the /etc/hosts.allow and /etc/hosts.deny file.

bandwidth_pig
07-08-2003, 07:20 PM
Odds are in regards to you not having inetd.conf installed is because you have not installed inetd (not being sarcastic). I don't use RedHat, but you should be able to issue a querey using rpm (rpm -q I think it was...it's been years). If you don't have it installed, it is easy enough to fix. Just install the rpm off your CD or download it. On my system I just go:

whereis inetd

And the path to all files inetd is listed.

chrism01
07-09-2003, 12:13 PM
Redhat has been using xinetd instead since v7.
The file would be in /etc/xinetd.d and called telnet.
You'd need to set
disable=no
in the file and then restart xinetd eg
service xinetd restart.

HOWEVER, I strongly recommend you with SSH as above. Its encrypted (inc usrname/passwd).
Telnet isn't.
SSH is a standalone daemon eg like Apache/httpd, so is not managed from xinetd.
Usually started during boot sequence.

HTH

jjd228
07-09-2003, 12:26 PM
thank you everyone. but this telnet server is strictly for internal use. security isnt a concern

bandwidth_pig
07-10-2003, 08:08 PM
Originally posted by chrism01
Redhat has been using xinetd instead since v7.
The file would be in /etc/xinetd.d and called telnet.
You'd need to set
disable=no
in the file and then restart xinetd eg
service xinetd restart.

HOWEVER, I strongly recommend you with SSH as above. Its encrypted (inc usrname/passwd).
Telnet isn't.
SSH is a standalone daemon eg like Apache/httpd, so is not managed from xinetd.
Usually started during boot sequence.

HTH

Hehehehe. That will teach me. I haven't used Redhat since 6.0.