Linux Certification, System Administration, Programming, Networking Books
Connect Two Linux Boxes

I connected two Linux boxes with a crossover cable. The OS is Redhat 9.0 one both machine.

Ping host1 from host2 or from host2 to host1 is OK. I also enable the telnet, rsh, shh, rlogin services on both machines (I am not so experienced linux user, maybe not quite right). The probems are when I use telnet or others, e.g.
% telent host1

I alwalys get "connect refused".

Can anyone give me some hints ?

-------------------------------------------------------------------------

Is your firewall allowing telnet?
To test for a firewall configuration issue, do this (as root):

service iptables stop

on both boxes, and retry the telnet request.

If it works, you have a FW definition problem.

You should research the use of 'ssh' in place of telnet 'tho .........

-------------------------------------------------------------------------

Are you able to connect to telnet locally?
ie:
$ telnet 127.0.0.1

-------------------------------------------------------------------------

by default telnet is disabled

if telnet 127.0.0.1 doesnt connect

u have to enable it...edit the following file
vi /etc/xinetd.d/telnet

# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}

#service xinetd restart
# telnet 127.0.0.1

Quick Links:
Do you have a Linux Question?

Linux Home: Linux System Administration Hints and Tips