# SSH Slow Login Fix

**URL:** https://forum.networklessons.com/t/ssh-slow-login-fix/1021
**Category:** Lessons Discussion
**Created:** [December 26, 2016, 6:15pm UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021 "2016-12-26T18:15:16Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 26, 2016, 6:15pm UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/1 "2016-12-26T18:15:16Z")

</div>

This topic is to discuss the following lesson:

> **[SSH Slow Login Fix](https://networklessons.com/miscellaneous/ssh-slow-login-fix)**
>
> DNS and GSSAPI authentication cause slow SSH logins. This lesson explains why this happens and how to fix this issue.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [November 10, 2013, 12:41pm UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/2 "2013-11-10T12:41:10Z")

</div>

Really useful! Thanks, solve my delay here!

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [June 21, 2014, 4:34am UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/3 "2014-06-21T04:34:12Z")

</div>

Thanks Rene

I put in all of your advised changes and ssh login is now instant.

It used to take 2 minutes to login to HP Proliant sitting next to me :))

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [June 25, 2014, 7:46am UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/4 "2014-06-25T07:46:52Z")

</div>

Glad to hear it helped Johan…2 minutes is a long time to wait for a console 🙂

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [September 23, 2014, 1:37am UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/5 "2014-09-23T01:37:02Z")

</div>

Thanks Rene,  
It is very useful to me.  
I fixed this problem  
For me, Ubuntu12.04, “Authentication” caused problem  
Actually, network engineer in our institute failed to fix this problem.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [September 23, 2014, 7:57am UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/6 "2014-09-23T07:57:35Z")

</div>

You are welcome!

---

<div class="post-metadata">

### Author: ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)
#### Post date: [February 25, 2020, 6:20pm UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/7 "2020-02-25T18:20:27Z")

</div>

Hi,

How did u fixed the issue??  
I’m doing labs on GNS3 and I’m not unable to connect in ssh to the asav.  
Also I have the same problem with my 3560CG in my home enviroment using Remmina.

Here the verbose log.

 ![screen](https://cdn-forum.networklessons.com/uploads/default/original/2X/f/feedc6b18e98fdc4cb0ea2db5e87243da44542d9.png)

Thanks

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [February 26, 2020, 6:09am UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/8 "2020-02-26T06:09:08Z")

</div>

Hello Giovanni

Doing some research I have found that you may need to zeroize and recreate your key. If that doesn’t work, you may need to modify the ssh command you’re using to connect. Take a look at this Cisco community post and let us know your results.

> **[SSH failed on 3750 switch](https://community.cisco.com/t5/vpn/ssh-failed-on-3750-switch/td-p/3043810)**
>
> Hi When i'm trying to SSH to my 3750 switch i get the following error: Unable to negotiate with 192.168.1.250 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 I tried to use the command ip ssh dh min size 4096,...

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)
#### Post date: [February 26, 2020, 8:27am UTC](https://forum.networklessons.com/t/ssh-slow-login-fix/1021/9 "2020-02-26T08:27:49Z")

</div>

zerozize and recreate the key not solved the issue.

I was able to connect to the asav and the 3560 specifying the auth algorithm.

`$ ssh -l <USERNAME> -oHostKeyAlgorithms=+ssh-dss -oKexAlgorithms=+diffie-hellman-group1-sha1 <HOST>`  
It worked for Remmina too.

Thanks
