The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008
Registered User
 

Join Date: Jul 2008
Posts: 8
Can't do ssh

We have a test box in solaris and some of 20 servers in prod. The problem is i can ping from test box to all prod box, but can't to ssh to prod box. If i try from prod to test box it giving unknown host error, SO what i need to check in test box
I did ps -ef |grep ssh it showing ssh is running

Please guide me what i need to do.

Thanks in Advance..
Prasad
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-02-2008
Registered User
 

Join Date: Dec 2005
Posts: 11
Are your servers pointed to DNS server(s)? Or have an entry in /etc/hosts
If you ssh to the server using the hostname or alias, you must have an entry in your /etc/hosts file or calling the FQDN entry.
Reply With Quote
  #3 (permalink)  
Old 07-02-2008
Registered User
 

Join Date: Jul 2008
Posts: 8
Its pointed to DNS server and i'm doing ssh hostname
Reply With Quote
  #4 (permalink)  
Old 07-02-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 462
which version of solaris are you doing?
if solaris 10, do svcs -vx and post the output.
if solaris 8 or 9, check the /etc/ssh/sshd_config file, /etc/defaultrouter , /etc/resolve.conf.
Are you able to ping to your gateway? whats the output of netstat -rn?
Reply With Quote
  #5 (permalink)  
Old 07-02-2008
Registered User
 

Join Date: Jul 2008
Posts: 8
Its solaris 8

There is no ssh directory in etc, I can able to ping defaultrouter.

# more resolv.conf
domain domain.com
nameserver 10.0.108.12
nameserver 10.0.108.13

# ping 10.6.110.10
10.6.110.10 is alive

# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.6.110.0 10.6.110.139 U 1 12 dmfe0
224.0.0.0 10.6.110.139 U 1 0 dmfe0
default 10.6.110.10 UG 1 45
127.0.0.1 127.0.0.1 UH 2 9 lo0

# ps -ef |grep -i ssh
root 291 1 0 22:30:28 ? 0:00 /usr/local/sbin/sshd
root 532 370 0 06:13:00 console 0:00 grep -i ssh
Reply With Quote
  #6 (permalink)  
Old 07-02-2008
Registered User
 

Join Date: Jul 2008
Posts: 8
In all other server defaultrouter is 10.15.14.1
Reply With Quote
  #7 (permalink)  
Old 07-02-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 462
since when you facing this issue? any changes made on the system recently? any reboot?
1) you can try to stop/start the sshd daemon
2) hope you're not trying to ssh as "root"
3) any subnets being blocked in the /etc/hosts.deny file (check the hosts.allow file as well)
4) how abt the sshd_config? PermitRootLogin line param?
5) can you ssh using the IP instead?
6) nslooklup hostname (does this return you your server IP)?

Last edited by incredible; 07-02-2008 at 06:48 AM.
Reply With Quote
Google UNIX.COM
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0