Slow login via SSH


 
Thread Tools Search this Thread
Operating Systems Solaris Slow login via SSH
# 1  
Old 09-02-2010
Slow login via SSH

Hi Guys and Girls, I know this is a common question but I've searched and we've tried the suggestions without luck. When I log into the box via SSH from a windows machine I get a 1 min 20 sec delay. If we add my IP address and machine name to /etc/hosts then I get an instant login. I would be happy with that as a solution except that it appears my IP keeps changing. Most of the posts I've looked at suggest this is a DNS issue which seems to fit as this machine times out if I type "nslookup bob" where on another server this returns instantly with an error. The timeout is 20 seconds which would indicate that when I log in it attempts to do 4 dns lookups?

I'm guessing the answer to this is fix the dns issue but that's not likely that easy. I don't know how this machine is connected to the network or even where in Australia the machine is located. It's a lab machine so likely doesn't have much access to anything. Assuming it can't reach a dns server can I work around this somehow? I found a post suggesting we put "UseDNS no" in /etc/ssh/sshd_config but this didn't help for some reason.

Thanks,
Michael
# 2  
Old 09-02-2010
After adding the UseDNS configuration, did you reload/restart SSH? Otherwise it won't have any effect.
# 3  
Old 09-02-2010
What is the host OS?
# 4  
Old 09-02-2010
Thanks for the replies,

uname -a says this:
SunOS xxxxxxxx 5.10 Generic_139555-08 sun4v sparc SUNW,T5440
I've removed the server name in case it's not something I should publish.

Pludi, we did try restarting sshd.
# 5  
Old 09-02-2010
I faced problems with SSH delays on Solaris. Check the SSH package version. We removed it and installed the latest OpenSSH and it solved our problem.

Code:
pkgchk -l | grep -i ssh

# 6  
Old 09-02-2010
Is there a MOTD that appears when you login?

try doing a ssh -v or ssh -vv or ssh -vvv to view the 3 levels of debugging to determine where the system is getting stuck at.

Also what specs is your system running?
# 7  
Old 09-03-2010
This might be the the server DNS setting problem. Assuming it can't reach a dns server, suggest is use your previous method to solve it
Quote:
"add IP address and machine name to /etc/hosts".
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Slow login with rexec.

Hi all, I´m replacing an old linux enterprise redhat 4.5 by a new one linux enterprise redhat 6. In both I use rexec as a communication between the front end and the user. In the old one, when the user connects, the communication establishes quickly (less than 3 sec). But in the new one, the... (1 Reply)
Discussion started by: mig28mx
1 Replies

2. UNIX for Advanced & Expert Users

OEL 6.3 :Slow login due to /etc/ssh/sshd_config configuration

Version: Oracle Enterprise Linux 6.3 Running on VMWare Workstation When I login to my Linux VM from putty, the third line prompting for password comes only after few seconds. login as: root Access denied root@192.168.0.235's password: ---> It takes around 5 seconds to get this prompt I... (1 Reply)
Discussion started by: John K
1 Replies

3. HP-UX

SSH slow at connect

Hi experts, We are getting slow ssh session connections at HP-UX 11.31 servers. We have set the parameters that maybe will affect , and commented at other theads at config file sshd_config : UseDNS no X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no GSSAPIAuthentication no. ... (7 Replies)
Discussion started by: SapBasisSystem
7 Replies

4. Solaris

Open Indiana 151a - Slow SSH Login

Hi, I have the following issue, when I tried to login to an Openindiana remote server through ssh It takes to long to ask me for the password. So i tried -v and I realize that sshd hangs here " debug1: SSH2_MSG_SERVICE_ACCEPT received " for at least 2 minutes. Then I can log in and everything is... (2 Replies)
Discussion started by: piukeman
2 Replies

5. Shell Programming and Scripting

Net::SSH::Perl slow to login.

I have some sample code that's supposed to ssh to another machine using Net::SSH::Perl, execute a command, and print the output of that command. It's very basic, and it works. However, I noticed that upon logging in: $ssh->login('username','password'); It takes roughly 10-13 seconds to... (2 Replies)
Discussion started by: mrwatkin
2 Replies

6. Solaris

ssh very slow

I'm facing a problem when trying to ssh to SUN servers with solaris OS,it takes a long time until prompted for password ..after connecting to the server everything work fine..how can I solve this issue??? (11 Replies)
Discussion started by: mm00123
11 Replies

7. Solaris

Slow Login

Hi All, I have problem when i write my user name to login to my server late (about 10 min) to give me field of password if u know how i can solve it? Thanks (4 Replies)
Discussion started by: mass1123
4 Replies

8. UNIX for Dummies Questions & Answers

Really slow login... any ideas why?

Hi, Quick question, I'm messing about with a test box at work (system v) Basically I telnet to the server. Get the following : SunOS 5.9 login: (my name) Password: (my password) Last login: Thu Feb..... yada yada (At this stage it takes over a minute to come to display the... (5 Replies)
Discussion started by: kenny123m
5 Replies

9. UNIX for Dummies Questions & Answers

Painfully Slow SSH login on Solaris box

Running open solaris on a e420 that I recently picked up. Having issues sshing to it from either of my Linux boxes as its very slow to login (from the solaris box to the linux box it connects just fine. Here is the output of ssh -vvv. I have hightlighted where it seems the slowdown is. Does... (0 Replies)
Discussion started by: creedog
0 Replies

10. Solaris

Solaris 9 slow login thru ssh & ftp

When I ssh to my box, an Ultra 5. I get prompted for password immediately. I enter it and have to wait sometimes a full minute for it to prompt for a password. The same thing happens when i try to ftp to the box, it will say connected, but it takes forever to prompt for password, and... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
Login or Register to Ask a Question