When I log in on my server I get this:
No mail.
Last login: Fri Nov 5 14:22:45 2010...
then I must wait for 5 sec and then is ready...
wolfy@ubuntu-server:~$
Is this wait time normal or should I do something to "repair" this?
|
When I log in on my server I get this:
then I must wait for 5 sec and then is ready...
Is this wait time normal or should I do something to "repair" this? |
|||||
|
|
This is usually the result of |
|||||
|
|
If So: disable Reference: https://groups.google.com/forum/?fromgroups=#!topic/comp.security.ssh/wExY8lWlG-c |
|||||
|
|
You might want to try to monitor the running processes while you're logging in to the server from an already logged-in connection (or a different console). There is a chance to spot which processes are the most active or using the most CPU at that time. Below is one possible method:
Please note, that if the delay is not caused by some CPU-intensive calculation, you will not spot anything out-of-place. This case the problem might be I/O bound (waiting for some disk read/write or network response). |
|||||||||
|
|
I have the same issues with 10.04 (LTS). When I run my ssh with
Extending this answer. I managed to reboot the server remotely and enabled DEBUG loggin. Also used this opportunity to stay logged in and observe other login attempts. Here is what happens. The client connects and is authorized and hangs at above message. On the server, the process list shows this:
I can execute This doesn't seem to be an ssh(d) problem, it's more related to Debuging this further: Turns out the I seem to have nailed it! Disabled pam_motd in the following files:
One more:
These seem to help to a certain extend. Though, it only removes the offending script in In general, I found no way to disable Bug report on this issue: Workarounds from there:
|
||||
|
|
|
Found solution myself finally:
Now login is INSTANT! |
|||||
|
|
In my limited experience, when putty works, but Linux, Ubuntu in this case, does not, it is usually keep alive. Networking or server problems would affect both client OS. You can use the above keep alive option on the command line, but it is sort of tedious to type. Easier to edit a few configuration files. If you have
If you do not have root access, or to enable it for a single user, edit |
|||
|
|
|
From your description it sounds more like a networking problem. To diagnose:
If you can connect OK with Windows and PuTTY, it's probably not an issue on the server's side. |
|||
|
|
|
If you have also a time wait before Edit and set (or add)
or add your ip in |
||||
|
|
|
I think when you login, ubuntu executes one or more of these files:
You could see what's in them and maybe even try executing them to see what's taking so long. |
|||
|
|
|
Check your system logs at /var/log, you may find a message with the related error/timeout. |
|||
|
|