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 .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
About Logon nokia1100 Shell Programming and Scripting 1 04-05-2007 04:21 AM
logon to ssh rocky_triton Shell Programming and Scripting 1 05-10-2005 04:11 AM
Logon Problem tayyabq8 SCO 0 11-16-2004 02:14 AM
Can't logon SRP UNIX for Dummies Questions & Answers 8 11-24-2003 02:04 PM
AIX logon attempts eysheikah Security 0 06-20-2003 06:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-21-2008
Registered User
 

Join Date: Mar 2008
Posts: 24
ssh logon

Hi

I am envountring a problem while I login using ssh on a sun box to a remote box.

I use ssh user@server and it takes long time to ask for a password..

does anyone knows the reason behind this? or is there a way that this could be solved

Thanks,
Antony
Reply With Quote
Forum Sponsor
  #2  
Old 07-21-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,484
try the ip instead of the servername. maybe it's a nameservice problem...
Reply With Quote
  #3  
Old 07-21-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 894
Check the order of the nameserver entries in your /etc/resolve.conf fille
Reply With Quote
  #4  
Old 07-21-2008
Registered User
 

Join Date: Mar 2008
Posts: 24
i tried to use the IP and still the same
Reply With Quote
  #5  
Old 07-21-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 894
Can you do a ssh -v -l someone@server and provide us the verbose output?
Reply With Quote
  #6  
Old 07-21-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 894
Thumbs up

Delays when ssh'ing in are almost always DNS related. To diagnose this, ssh into the machine from a known good box (that doesn't see the delays elsewhere) with the command line "ssh -vv username@hostname" and see where the delay is. It's likely that the server that is giving you the delay is trying to reverse lookup the IP of the machine you are sshing from and timing out (hence the delay).

To fix, edit your ssh config ("/etc/ssh/sshd_config") and add a "UseDNS no" line (or change the existing one to this).

Then restart your sshd via "sudo /etc/init.d/ssh restart".

Hope that helps.
Reply With Quote
  #7  
Old 07-22-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,484
Quote:
Originally Posted by incredible View Post
Delays when ssh'ing in are almost always DNS related. To diagnose this, ssh into the machine from a known good box (that doesn't see the delays elsewhere) with the command line "ssh -vv username@hostname" and see where the delay is. It's likely that the server that is giving you the delay is trying to reverse lookup the IP of the machine you are sshing from and timing out (hence the delay).

To fix, edit your ssh config ("/etc/ssh/sshd_config") and add a "UseDNS no" line (or change the existing one to this).

Then restart your sshd via "sudo /etc/init.d/ssh restart".

Hope that helps.
or "svcadm" with solaris 10!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:55 PM.


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

Content Relevant URLs by vBSEO 3.2.0