unable to ssh to remote host

server is ok, I can login on console. however, when I use SSH teachia, there is no repsond.
i have check ps-ef | grep ssh, it shows ok. restart ssh too. still not working.

Anything else I need to check?

# ps -ef | grep ssh
root 24706 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 28763 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 22865 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 11654 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 14129 1 0 Jun 13 ? 9:34 /usr/local/sbin/sshd2
root 22303 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 17154 1 0 06:30:05 ? 0:00 /usr/local/sbin/sshd2
root 5805 1 0 Jun 13 ? 11:22 /usr/local/sbin/sshd2
root 28872 1 0 Jun 13 ? 10:22 /usr/local/sbin/sshd2
root 459 1 0 10:08:08 ? 2:14 /usr/local/sbin/sshd2
root 28749 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 27878 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 22727 1 0 Jun 13 ? 0:00 /usr/local/sbin/sshd2
root 18824 1 0 15:08:19 ? 1:19 /usr/local/sbin/sshd2
root 15732 1 0 Jun 14 ? 4:32 /usr/local/sbin/sshd2
root 1132 1 0 Jun 14 ? 5:17 /usr/local/sbin/sshd2
root 25095 1 0 Jun 13 ? 10:30 /usr/local/sbin/sshd2
root 26139 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 4946 1 0 Jun 14 ? 5:07 /usr/local/sbin/sshd2
root 29045 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 28339 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 22409 1 0 16:08:02 ? 1:09 /usr/local/sbin/sshd2
root 28932 1 0 17:55:11 ? 0:49 /usr/local/sbin/sshd2
root 4060 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 16003 1 0 Jun 14 ? 4:31 /usr/local/sbin/sshd2
root 11889 1 0 21:27:13 ? 0:09 /usr/local/sbin/sshd2
root 23697 1 0 00:12:16 ? 4:06 /usr/local/sbin/sshd2
root 14121 13152 0 22:03:50 ? 0:01 /usr/local/sbin/sshd2
root 9495 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 25640 1 0 08:49:14 ? 2:28 /usr/local/sbin/sshd2
root 2009 1 0 Jun 14 ? 6:57 /usr/local/sbin/sshd2
root 27040 1 0 Jun 13 ? 0:00 /usr/local/sbin/sshd2
root 27840 1 0 01:19:04 ? 3:57 /usr/local/sbin/sshd2
root 20765 1 0 15:41:38 ? 0:00 /usr/local/sbin/sshd2
root 16356 1 0 Jun 13 ? 11:52 /usr/local/sbin/sshd2
root 12073 1 0 05:08:07 ? 3:11 /usr/local/sbin/sshd2
root 26655 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 10717 1 0 21:08:05 ? 0:12 /usr/local/sbin/ss

check your /etc/sshd_config file configuration to see it is enabled the option to accept remote logins, maybe during the Solaris Instalation you told it not to accept remote conections, so it will refuse them.

Also, with which user are you trying to login? In case you're trying to connect remotely as root, as a security default it's deactivated.

Try logging with a no-root user and if it doesn't work, check your config file.

Can you ping the server from the client? Sounds more like a networking issue that it does an ssh issue. Are you going through a router or switch to reach the server? maybe the port needs to be open for ssh?

no, I cannot ping it from client

I am able to go through a router to reach the server

Then it seems its more to do with the router problem add the router to the server #route add <ip>

Are you using "root" to ssh?

if root is not able to ssh try this..

vi /etc/ssh/sshd_config
permit root login - yes

How are you connected now without ssh? telnet via sc to console?
btw can you check netstat -rn and see if your gateway IP is present?