0

I made some changes to my firewall (blocking outside dns and forcing it through my dns server), and I think that may be related to why it takes a minute to connect to user@192.168.1.2? See output -vvv in the pastebin. I tried googling the part where it gets stuck and I'm stumped. UseDNS is set to no.

https://pastebin.com/WMAyrnv1 <--Log here, I've noted where it gets stuck

Edit: Updated Pastebin link with some information.

19wolf
  • 111

2 Answers2

0

Where does it get stuck? It might be the reverse resolving. Once you login into 192.168.1.2 try to resolve the ip you came from:

host origin_ip

You can get the origin_ip with one of these:

echo $SSH_CLIENT
echo $SSH_CONNECTION

If that takes a long time, you know what the problem is. You could then add the reverse zone to your DNS or set UseDNS to "no" in sshd_config.

0

Found my answer in another post- https://serverfault.com/questions/792486/ssh-connection-takes-forever-to-initiate-stuck-at-pledge-network

changed UsePAM from yes to no in sshd_config file

19wolf
  • 111