Login to server takes time


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Login to server takes time
# 1  
Old 12-07-2011
Data Login to server takes time

When I am trying to login to a server using Putty ssh from my windows xp machine it is taking too much time for login.

My server name is http2 and when I enter this address into putty I immediately get
login as:
screen, but after I put my username root and enter the cursor moves downwards and wait for sometime(Around 20 seconds) before it displays
root@http2's password:
After I enter password it seems everything works fine and no problem running commands also.

I also encountered this problem with other usernames and only this server on this network have this type of problem. This server also don't have much processes running.
# 2  
Old 12-07-2011
Please check the setting in the nsswitch.conf file in /etc folder



PHP Code:
passwd:     files
shadow
:     files
group
:      files
#hosts:     db files nisplus nis dns
hosts:      files dns 
# 3  
Old 12-07-2011
Nsswitch file

contents in the nsswitch.conf file is dumped here. Please check this:

Code:
passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:  files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

# 4  
Old 12-07-2011
Does it go faster when you enter the IP instead of the name of the host when connecting?
Is the box you are trying to connect to very busy? Check with vmstat or top.
# 5  
Old 12-07-2011
Data

Using IP address also the same delay occurs.

This server is working ideal and not many processes are running.
# 6  
Old 12-07-2011
Is any other type of connect to the server fast ie. by it's name it sounds like being a webserver - is a http-connect fast? ftp?
Is it in the same subnet as your workstation you are trying to connect from?
Is a traceroute showing any delays?
# 7  
Old 12-07-2011
Data ftp is fast

ftp and http-connect are working fine and fast.

This problem only exists when login to the server. But once logged into the system there is not problem for running tasks and commands and all are working fast.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Transfer file from a server takes long time

It takes 6 hrs for a 90 GB zip file that i am copying / transferring from serverA onto serverB. scp user1@serverA:/opt/setup/cash.zip . Output: cash.zip 21% 19GB 4.7MB/s 4:11:46 ETA uname -a SunOS serverB 5.11 11.2 sun4v sparc sun4vCan you please suggest if i could do... (11 Replies)
Discussion started by: mohtashims
11 Replies

2. Shell Programming and Scripting

Wget takes a long time to complete

Hi, I wish to check the return value for wget $url. However, some urls are designed to take 45 minutes or more to return. All i need to check if the URL can be reached or not using wget. How can i get wget to return the value in a few seconds ? (8 Replies)
Discussion started by: mohtashims
8 Replies

3. AIX

Telnet or rsh takes too much time

telnet or rsh or ftp to an AIX machine takes too much time, like have to wait 3 minutes before the prompt appears. What can I look to troubleshoot this problem thanks (4 Replies)
Discussion started by: filosophizer
4 Replies

4. Solaris

Login takes 44secs to 50secs

Hi, Anyone can help me, I have 10 servers all was Solaris 10 installed. The 9 servers was so fast ounce you login. But only 1 server will take 44secs to 55secs to login. I check all the hardware side it was ok. I'm using ssh, putty, ftp and telnet to login. Can you please me for any work... (11 Replies)
Discussion started by: fspalero
11 Replies

5. Shell Programming and Scripting

sort takes a long time

Dear experts I have a 200MG text file in this format: text \tab number I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways? I dont want to split the file since this one is already splitted. I use this command: sort -fd file >... (12 Replies)
Discussion started by: voolek
12 Replies

6. UNIX for Dummies Questions & Answers

time how long it takes to load a module

Hello, like the title says, how can i measure the time it takes to load a module in Linux, and how how can i measure the time it takes to load a statically compiled module. /Best Regards Olle ---------- Post updated at 01:13 PM ---------- Previous update was at 11:54 AM ---------- For... (0 Replies)
Discussion started by: ollebanan
0 Replies

7. Linux

it takes long time to login on server

Hi, I am trying to login using ssh on Red Hat Linux 5 server, The password appears immediately but after I enter the password it takes about 90 seconds to login completely. Please suggest what changes require? Regards, Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies

8. Solaris

takes time to connect my application

getting delayed to connect to my database in solaris Does anyone help me to get out of this issue help will be more appreciated. (2 Replies)
Discussion started by: Gods_help
2 Replies

9. UNIX for Advanced & Expert Users

Login Process takes longer

Hello. Since Yesterday, I notice that after giving telnet IP or SSH IP - it takes long time to display login: , I mean earlier after entering Server name It used to immediately ask for login ID and then password. But, now it takes min of 2-3 minute to ask for password. Where can I check,... (12 Replies)
Discussion started by: panchpan
12 Replies

10. UNIX for Dummies Questions & Answers

Writing file to disk takes time

Hi All, I am working on a Solaris machine. When i use a particular software to generate some files, the log shows around 0 to 3 secs for generating each file. But the same when i see on the disk it shows double the time difference between two file generation. For example if file A takes 0 secs... (7 Replies)
Discussion started by: nileshkarania
7 Replies
Login or Register to Ask a Question