could not ssh and ping


 
Thread Tools Search this Thread
Operating Systems Solaris could not ssh and ping
# 1  
Old 05-20-2009
could not ssh and ping

Hi,

I have a solaris 8 machine.

I see ssh is running in the machine


Code:
sbnismwp2# ps -aef | grep ssh
    root   947   945  0 04:34:45 ?        0:00 /export/opt/SSHtecagt/sbin/ssh-mgmt-sysmonitor
    root   945     1  0 04:34:45 ?        0:00 /export/opt/SSHtecagt/sbin/ssh-mgmt-agent
    root   946   945  0 04:34:45 ?        0:00 /export/opt/SSHtecagt/sbin/ssh-mgmt-router
    root  6309     1  0 05:10:01 ?        0:00 /export/opt/SSHtectia/4.4.8_A0/sbin/ssh-certd
    root  6854  1534  0 05:13:38 console  0:00 grep ssh
    root  6279     1  0 05:09:48 ?        0:00 /export/opt/SSHtectia/4.4.8_A0/sbin/sshd2

sbnismwp2# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 159.17.70.101 netmask ffff0000 broadcast 159.17.255.255
        ether 0:3:ba:2c:c9:5b
sbnismwp2#


But I could not either PING or SSH ,

Kindly any one help me on this

Regards
Rj

Last edited by DukeNuke2; 05-20-2009 at 07:11 AM.. Reason: code tags...
# 2  
Old 05-20-2009
Is that the server you're accessing to or accessing from?
Which host are you trying to access?
provide netstat -rn output.
clearly explain what actually happens.
# 3  
Old 05-20-2009
Hi Incredible ,

I am trying to access from my admin server whose ip is 150.110.221.150.

I could not ssh or ping from my admin server.

The destination machine is 159.17.70.101 sbnismwp2.nam.nsroot.net.

The output of netstat -nr

sbnismwp2# netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
159.17.0.0 159.17.70.101 U 1 98 ce0
127.0.0.1 127.0.0.1 UH 3 1189 lo0
sbnismwp2#


Kindly do the needful.
# 4  
Old 05-20-2009
Are you able to ping to your default router? Btw, you are in a different IP segment. Did you specify the netmasks correctly?
You must check whats the default route for the 150.x.x.x IP. Then you have to add it into your routing table. Also , no firewall should be blocking. If so, then you can access of course
# 5  
Old 05-20-2009
I have addred the defauult router .

Yes the router is pingable.


sbnismwp2# more defaultrouter
159.17.70.1
sbnismwp2# route add default sbnismwp2
sbnismwp2: bad value
sbnismwp2# route add default 159.17.70.101
add net default: gateway 159.17.70.101
sbnismwp2# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
159.17.0.0 159.17.70.101 U 1 108 ce0
default 159.17.70.101 UG 1 0
127.0.0.1 127.0.0.1 UH 3 1325 lo0
sbnismwp2# ping -a 159.17.70.1
159.17.70.1 (159.17.70.1) is alive
# 6  
Old 05-20-2009
Im not talking about the source. eg. Is the remote machine able to ping the same gateway? It should, then only you can ping across, telnet,ssh etc.. got it?
# 7  
Old 05-20-2009
First of all you must check if the system is up. Go direct to the system console and verify the IP and its plumbed up and is able to ping to its gateway
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

PING to AIX works but TELNET FTP SSH doesn't work

root@PRD /> rsh DR KFAFH_DR: protocol failure due to unexpected closure from server end root@PRD /> telnet DR Trying... Connected to DR. Escape character is '^]'. Connection closed. root@PRD /> ftp DR Connected to KFAFH_DR. 421 Service not available, remote server has closed connection... (2 Replies)
Discussion started by: filosophizer
2 Replies

2. UNIX for Advanced & Expert Users

Cant ssh, but ping works

I cant ping to some of my machines, but ping works. I attach screenshots. Port is open and it is 22. I can't figure out why i cant access. https://www.unix.com/attachments/unix-for-advanced-and-expert-users/7492d1541541072-cant-ssh-but-ping-works-sshlisten-jpg... (17 Replies)
Discussion started by: tomislav91
17 Replies

3. Shell Programming and Scripting

Ssh on ping result?

I still haven't had chance to read the entire Debian manual, which I promise I will do as soon as I can, and I will start putting info back into this forum. However, for the mean time, could someone please help with a small script? I understand what I've got to do and how to do it, but I'm... (13 Replies)
Discussion started by: MuntyScrunt
13 Replies

4. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies

5. AIX

Not able to ssh or ping a server

Hi, Earlier I was able to ssh /ping the server but now it just hangs Please suggest how to troubleshoot. Best regards, Vishal (4 Replies)
Discussion started by: Vishal_dba
4 Replies

6. Shell Programming and Scripting

How to get reason for ping failure using perls Net::Ping->new("icmp");?

Hi I am using perl to ping a list of nodes - with script below : $p = Net::Ping->new("icmp"); if ($p->ping($host,1)){ print "$host is alive.\n"; } else { print "$host is unreacheable.\n"; } $p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies

7. Shell Programming and Scripting

Animation Ping on Solaris Like Cisco Ping

Hi, I develop simple animation ping script on Solaris Platform. It is like Cisco ping. Examples and source code are below. bash-3.00$ gokcell 152.155.180.8 30 Sending 30 Ping Packets to 152.155.180.8 !!!!!!!!!!!!!.!!!!!!!!!!!!!!!. % 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies

8. Solaris

Ping = no, SSH = eventually. Next step?

I have a Solaris 9 server that does not return a ping. When I try to log in via SSH I eventually get in. I am logged in now. I know this is a wide open question, but can you recommend some things I should check? . Thanks in advance, ~R (2 Replies)
Discussion started by: abstractrick
2 Replies

9. Solaris

could not ssh and ping

hi , i cannot ssh to a server , i have restarted the ssh instances also. and i cannot ping to the server.. any ideas ..plz (5 Replies)
Discussion started by: jegaraman
5 Replies

10. Linux

Can't SSH / ping Linux box !!!

I have a linux box build11 which can be pinged from build18 (Windows) box. And we can only login to the box (using SSH) from build18 box. Plz help to characterize the problem, network, DNS, DHCP, etc (or whatever which I am unsure) Any idea what may be the reason ? :confused: Thanks in... (4 Replies)
Discussion started by: csaha
4 Replies
Login or Register to Ask a Question