Question: why ssh connection is slow?
Answer: It's usually DNS. The most common cause of slow SSH login authentications is DNS. To fix this one, go to the SSH server, edit /etc/ssh/sshd_config, and set UseDNS no. You'll need to restart the service after changing sshd_config: /etc/init. d/ssh restart, systemctl restart ssh, etc as appropriate.