System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

telnet and ssh is not working

gany59
Regular Advisor

telnet and ssh is not working

Hi folks,

I am having the server rx 6600 running in the OS version 11.23, suddenly the server is not reachable, but i am able to login to the console, everything is seems to be fine in that. but i am not able to the telnet and SSH.

please advice me on that.

Thanks in advance...
9 REPLIES
Steven E. Protter
Exalted Contributor

Re: telnet and ssh is not working

Shalom,

see if you can ping the gateway.

If not use lanadmin -r # to reset the NIC.

It would appear to me you have lost network connectivity.

See if ssh daemon is running. It probably is.

netstat -an |grep ":22 "

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
gany59
Regular Advisor

Re: telnet and ssh is not working

hello Steve,

the ssh deamon is running, so shall i use the command what u said in the forumn, lanadmin -r # to reset the NIC.

telnetd deamon is also working, i am just wondered that all the services are running , but i am not able to do the telnet and ssh.
Tingli
Esteemed Contributor

Re: telnet and ssh is not working

Another thing you can kill all the ssh daemons, then try to ssh to it again.
John Guster
Trusted Contributor

Re: telnet and ssh is not working

is there any error in the syslog.log? if kernel parameters related to the login session are max out or not.
SoorajCleris
Honored Contributor

Re: telnet and ssh is not working

"suddenly the server is not reachable"

Console is different => that will be fine

Tell me if you are able to ping the IP

regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Steven Schweda
Honored Contributor

Re: telnet and ssh is not working

> [...] the server is not reachable [...]

What, exactly, does this mean?

> [...] i am not able to the telnet and SSH.

"I am not able" is not a useful problem
description. It does not say what you did.
It does not say what happened when you did
it. As usual, showing actual commands with
actual error messages can be more helpful
than vague descriptions and interpretations.
Chandrahasa s
Valued Contributor

Re: telnet and ssh is not working

Hi,

Are you able to ping server???

from console are you able to ping your gateway??

try /sbin/init.d/net stop

/sbin/init.d/net start

Chandra
singh sanjeev
Trusted Contributor

Re: telnet and ssh is not working

check any cable disconnection message in :

netfmt -f /var/adm/nettl.LOG000

Post the output of :

lanscan
netstat -in
netstat -rn

Sanjeev Singh
Raj D.
Honored Contributor

Re: telnet and ssh is not working

Gany,

>everything is seems to be fine in that .

what is "everything", when the server is unreachable. I think you mean "everything" means the server is running and up from console.

Well you can check the below :

1. Check if the gateway is pingable:

# netstat -rn | grep GW
# ping < that ip>

---> NO --> go_to_step2.


2. Check your lancard is online and connected to the cable physically:
# lanadmin -sx

(# netstat -in #shows the PPA. PPA= 2 if it is lan2.

- If the link is broken , that is cable is disconnected , it will show "No Link" else it will show 1000MBps or whatever speed it is .


3. Check syslog for any error:
# cat /var/adm/syslog/syslog.log | grep -i lan

- If you are under Service Guard, the lan failure will be monitored and there will be entry in syslog.


4. Is there any other interface on the server that is configured. if yes try to ping that ip.


The important thing that you are missing is ping:

> but i am not able to [do] the telnet and SSH.

First thing you should check is sending ICMP packets with ping and see if you are getting response or not. If you don't do the basic checks it is hard to understnad what is "not working".

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "