3

When I log in using SSH or after pressing Ctrl+Alt+F1, it takes several seconds after I enter my password to finally show the following:

Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-28-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

0 packages can be updated.
0 updates are security updates.

Last login: Thu Jan  1 00:00:00 1970
Unable to connect to X server
Unable to connect to X server

user@host:~$ 

What is it doing that causes it to take several seconds to get to a shell prompt? How can I speed it up?

Olathe
  • 4,310
  • 2
  • 19
  • 24

1 Answers1

0

"What is it doing that causes it to take several seconds to get to a shell prompt?"

It's using RSA to establish a secure, authenticated connection, and then does a Diffie-Hellman ratchet to establish forward security by generating a one-time key. So there's a good deal of security overhead with SSH.