Operating System - HP-UX
1834813 Members
2698 Online
110070 Solutions
New Discussion

Re: Not able to ping or connect to system with telnet or ssh

 
Kaps_2
Regular Advisor

Not able to ping or connect to system with telnet or ssh

Hello Everybody,

I have just now installed HP-UX 11.31 on a server, where I have given proper IP address and which also is on network.The problem is that I can connect to another system from this system using ssh ( also I can ping other system ) but when I am trying to ssh or telnet or ping this HP-UX system, I am unable to do.Any Idea abt this.Please let me know as early as possible.

Thanks,

Kapil
23 REPLIES 23
Torsten.
Acclaimed Contributor

Re: Not able to ping or connect to system with telnet or ssh

First point I would check is the IP config (address/mask/gateway).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jaime Bolanos Rojas.
Honored Contributor

Re: Not able to ping or connect to system with telnet or ssh

I agree it sounds like the system was misconfigured.

Please check to see if you can ping your local ip address when you are local to the system, also you might want to post your /etc/hosts file and see if you can ping any other hosts that might be listed there.

Regards,

Jaime.
Work hard when the need comes out.
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Hi Tortson,

As i mentioned the IP address is proper.As now I am able to ping the system.But not able to ssh or telnet.Bastille is installed on the system.Will this create any problem...?

Thanks,

Kaps
V. Nyga
Honored Contributor

Re: Not able to ping or connect to system with telnet or ssh

Hi,

do you ping with ip address or with name?
Maybe name resolution isn't working.

Volkmar
*** Say 'Thanks' with Kudos ***
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Hey Guys,

Now I am able to ping but not able to telnet or ssh that system...
Torsten.
Acclaimed Contributor

Re: Not able to ping or connect to system with telnet or ssh

If the IP address is OK, did you check gateway and mask too?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven Schweda
Honored Contributor

Re: Not able to ping or connect to system with telnet or ssh

> [...] not able [...]

This does not describe the problem well.
Actual commands with actual error messages
would reduce the guesswork required.
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

no error msg getting while I am trying to do ssh or telnet..gateway is proper...is there any thing u know abt bastille...?

thanks,

Kaps
Jaime Bolanos Rojas.
Honored Contributor

Re: Not able to ping or connect to system with telnet or ssh

Kaps,

Try to ssh or telnet, please send us the error that you are getting, also please make sure that you got enable telnet and ssh connection in the /etc/services file.

Regards,

Jaime.
Work hard when the need comes out.
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Hi Jamie,

I tried to SSH n telnet the system but U am not getting any error.

Thanks,

Kapil
Torsten.
Acclaimed Contributor

Re: Not able to ping or connect to system with telnet or ssh

What gives

# bastille -l

(lower case L)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
John Carr_2
Honored Contributor

Re: Not able to ping or connect to system with telnet or ssh

can you login into the destination server by any route nd talk back to the new server?
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Hi,

Is there any way to check the telnet service is running...? also to restart telnet service...
Torsten.
Acclaimed Contributor

Re: Not able to ping or connect to system with telnet or ssh

check bastille as advised.

check

ssh 127.0.0.1
or the ip address.

telnet may be disabled.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
rajdev
Valued Contributor

Re: Not able to ping or connect to system with telnet or ssh

Hi Kapil,

Check the telnet and ssh services are running

Telnet
------------------
you should get similar output when you do
a grep of telnet in /etc/inetd.conf and /etc/services

# grep telnet /etc/services
telnet 23/tcp # Virtual Terminal Protocol
# grep telnet /etc/inetd.conf
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd


if they are commented, then uncomment them and run #inetd -c
now check # netstat -an|grep LISTEN|grep 21

you should see a port listinening ....

As for ssh,check the ssh daemon is up

SSH
---------------
ps -ef|grep -i ssh

then check the ssh config files
normally at /etc/ssh/...
or /opt/ssh/etc ...
you can do a find and see the ssh config files

find / -name sshd_config -print ...
man sshd_config ... will help you ..

try putting a minimal ssh config file

in sshd_config

------------------------------
Protocol 2
HostbasedAuthentication yes
KerberosAuthentication no
UsePAM no
X11Forwarding yes
Subsystem sftp /opt/ssh/libexec/sftp-server
---------------------------------

then restart ssh daemon ....

whiteknight
Honored Contributor

Re: Not able to ping or connect to system with telnet or ssh

Kapil,

if you have Bastille,

The only way to get Bastille to loosen its security, is to revert the system to its "pre-Bastille" state with bastille -r, which essentially moves all the system files from the /var/opt/sec_mgmt/bastille/revert/backup directory structure back to their original location.

WK
Problem never ends, you must know how to fix it
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Now I am able to do ssh and telnet...but the server is now taking lot of time for responding....?
Torsten.
Acclaimed Contributor

Re: Not able to ping or connect to system with telnet or ssh

"Now I am able to do ping ..."

"Now I am able to do ssh and telnet ..."

Please tell us what you did!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Hi Torsten,

If u have an yahoo acc...please give me that...

Thanks,

Kaps
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Hi Torsten,

If u have an yahoo acc...please give me the ID...

Thanks,

Kaps
Torsten.
Acclaimed Contributor

Re: Not able to ping or connect to system with telnet or ssh

Please post the steps you did here.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kaps_2
Regular Advisor

Re: Not able to ping or connect to system with telnet or ssh

Hi Torsten,

Yeah the other thread is related to this.Since yesterday I have just disable bastille by bastille -r.Other than that I have not done anything..but after that I am anle to ssh & telnet the system but its taking a long time to establish connection.So I want to know why its taking so long time.

Thanks,

Kaps

Steven Schweda
Honored Contributor

Re: Not able to ping or connect to system with telnet or ssh

> [...] why its taking so long time.

The usual reason for a connection delay for
Telnet and SSH is a DNS problem. The servers
normally try to translate the client IP
address to a name, and that can take some
time if the DNS look-up fails.

On the server, try something like:
nslookup
If you don't get the client name quickly,
then that could be the problem.

> Actual commands with actual error messages
> would reduce the guesswork required.

> please send us the error that you are
> getting

> Please tell us what you did!

> Please post the steps you did here.

This could all be much simpler if you would
simply tell us exactly what you did, and
exactly what happened when you did it.