Answer by Peter Cordes for Why does it take tens of seconds to get a shell...
If it's an Ubuntu server, the default login setup checks if any packages are updatable every time a login shell runs. If the package lists aren't in disk cache, this can take a second or two even on a...
View ArticleAnswer by Klaus Hartnegg for Why does it take tens of seconds to get a shell...
This is in most cases a timeout of a DNS request. Cause: The server attempts a reverse DNS lookup using the IP address of the client, and does not get a reply. If A connects to B, B tries to convert...
View ArticleAnswer by Digital Trauma for Why does it take tens of seconds to get a shell...
One possibility (covered by other answers) is that the process of setting up the SSH session itself is where the time is lost. Another alternative is that your shell startup scripts running on the...
View ArticleAnswer by sCiphre for Why does it take tens of seconds to get a shell prompt?
It's probably either waiting for DNS or trying to authenticate via LDAP or such. Try to add UseDNS no to /etc/ssh/sshd_config If it also does it on local logons, check if any LDAP servers or DNS...
View ArticleAnswer by Falcon Momot for Why does it take tens of seconds to get a shell...
Quite a few things could be happening here. You can find most of the answers in your shell's manual, but those are usually incredibly long and oblique, so... Chances are your problem boils down to one...
View ArticleWhy does it take tens of seconds to get a shell prompt?
It's a sort of regular occurrence that, after SSHing to a server (or even opening a terminal on my Mac), the login banner prints immediately but it takes ~10 seconds to a minute for the shell prompt...
View ArticleAnswer by Paul for Why does it take tens of seconds to get a shell prompt?
Learned alot from this thread. In my case the offender was nvm:export NVM_DIR="$HOME/.nvm"[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm[ -s...
View ArticleAnswer by djdomi for Why does it take tens of seconds to get a shell prompt?
a common issue i have is, that the server is Reachable by IPv4 and IPv6 and due the fact that IPv6 will be prefered even if its unsupported to the internet of the LAN, it tries to connect.On Putty you...
View ArticleAnswer by Rami Amro Ahmed for Why does it take tens of seconds to get a shell...
for future visitors, i had miniconda on my machine and its .bashrc entry was the one causing my delayed shell prompt. i no longed needed the conda so removed its entry from .bashrc that looked kike...
View ArticleAnswer by Rohit Gupta for Why does it take tens of seconds to get a shell...
I copied all the content from/etc/skel/.bashrcand pasted it in my actual ~/.bashrcalso removed all contents from .bash_historyand it worked flawlessly again.So basically what we did here is, reset the...
View Article