Three to four months ago connecting to my droplet through ssh took about a second. Then suddenly it takes from a minute to two before I’m prompted for the password. And then about the same time to get to the command line in my centos droplet.
Sam goes for an ftp connection. A minute to connect and list the files. Another minute for connection is established to upload a file. Then the file upload it self isn’t too bad. But still, waiting two minutes to connect isn’t cool.
I’m on the cheapest package. But I find it weird that it was quick and then quite a substantial drop in speed.
Is this a know problem? Is it something that can be fixed? Or do I need to upgrade to a more expensive package for quicker connections? Mind you that its only connection that is the problem. The initial connect.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Try this:
Edit the ssh config
nano /etc/ssh/sshd_config
Disable “use dns” option
useDNS yes # CHANGE THIS TO no
Save and close
ctrl + X, Y, enter
Restart the sshd service
service sshd restart
Thanks! Helped me…
For those who are interested:
useDNS no
is now the default settingAnd an explanation of its use can be found at: http://unix.stackexchange.com/questions/56941/what-is-the-point-of-sshd-usedns-option/56947
TLDR;