1829348 Members
1960 Online
109991 Solutions
New Discussion

i am not able connect

 
SOLVED
Go to solution
Chandrasekar_6
Occasional Advisor

i am not able connect

Hi Admins,

I install Redhatlinux9 in my desktop as a server .But i am not able to connect the machine .I am new to linux environment,so please help me to connect the machine from remote.But i gave static ip address.What are procedures i have to do.

Thanks in advance.

chandru


13 REPLIES 13
njia_1
Trusted Contributor

Re: i am not able connect

Hi

What IP address you assigned to ther RH 9 box and what IP address you configued on your PC or workstation.

When you installed RH 9, did you turn on the firewall ?

Are you trying to access it using ftp, http, telnet, ssh ?

Login that box as root from local console and stop iptables and ipchains if installed. Once they are stop, try again

/etc/init.d/ipchains stop
/etc/init.d/iptables stop
Chandrasekar_6
Occasional Advisor

Re: i am not able connect

Hi Nija :

Thanks for you reply.

My machine is not in firewall.
I tried to access through telnet.

njia_1
Trusted Contributor

Re: i am not able connect

What IP address you used for the RH 9 box and the computer you tried to telnet to this RH 9 box ?

Have you tried to access other computers on the network from this RH 9 box ?
njia_1
Trusted Contributor

Re: i am not able connect

Hi

Just something came up in my mind, telnet is disabled by default since RH 8 I think.

use following command to enable it if you want

/sbin/chkconfig --level 345 telnet on
/etc/init.d/xinetd restart
Gopi Sekar
Honored Contributor

Re: i am not able connect


telnet is by default disabled in RH distributions, also it is not safe to access a box over telnet.

So use SSH from the remote machine (if you are using windows, then use 'putty' a free SSH client for windows)

On the linux box ensure the IP address is configured, run 'ifconfig' as root user and see whether eth0 is configured with the IP address you gave. Also try to ping the machine with the ip address you gave and see whether it works.

Hope this helps,
Gopi
Never Never Never Giveup
Morcos
Super Advisor

Re: i am not able connect

Is your network card up, can you ping the other machines. If not try ifup eht0 or check your configuration and the default gateway.

Also make sure telnet is enable on your machine: chkconfig --list telnet.

HTH
ziad

Muthukumar_5
Honored Contributor

Re: i am not able connect

Ok. Are you able to ping to the new linux machine.

# ping

If it is successful then,

# telnet

are you able to do ? Are getting any errors?

# ssh

Is it working?

If it is not working, log on to the linux machine with it's console then,

# netstat -na | grep -i :23

Is it listening?

# iptables -F

Try now.

hth.
Easy to suggest when don't know about the problem!
Chandrasekar_6
Occasional Advisor

Re: i am not able connect

Hi Admins:

Thanks for reply


I am able to ping the linux machine from my windows desktop.

From linux machine i am able to rlogin to HPUX machine.From HPUX machine i am not able to rlogin the linux machine.

In the folder /etc/xinetd.d there is no firewall.

I start the telnet service

service xinetd start.

I add in securetty file console pts/o to pts/8

In /etc/xinetd.d i cat telnet the output is

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

please give the solution to connect through telnet from remote.
Gopi Sekar
Honored Contributor

Re: i am not able connect


Try to connect to telnet from the local linux box itself first.
i.e from the linux box,
telnet localhost

and see whether you are getting the login prompt. If you are not getting the login prompt it means telnet service is not running on the system.

Hope this helps,
Gopi
Never Never Never Giveup
Chandrasekar_6
Occasional Advisor

Re: i am not able connect

Hi Gopi

I gave telnet localhost

it is connecting.
Gopi Sekar
Honored Contributor
Solution

Re: i am not able connect


Ok it means telnet is running fine on the linux box and the problem is most likely from the remote box or on the network.

If the boxes are connected by a router, ensure the router allows telnet traffic.

Second ensure no firewall running on the linux box (hopefully you have already done this) still, confirm it by 'service iptables stop' on the linux box.

From the remote box login to the linux box and see whether you are getting the login prompt, if not the problem is on the network side. If you are getting the login prompt but not able to login as root (eg) then the problem is some misconfiguration in the Linux box.

Hope this helps,
Gopi
Never Never Never Giveup
Chandrasekar_6
Occasional Advisor

Re: i am not able connect

Hi Gopi:

Thanks for reply.

i did service iptables stop.


Thanks

Krish
Chandrasekar_6
Occasional Advisor

Re: i am not able connect

Thanks for all.i will touch with you

Bye for now

Thanks

Chandrasekar