Juniper – How to Debug SSH on JunOS

juniperjuniper-junosssh

Our Junipers will not accept my ssh keys when I provide them from my favorite Windows client.

On a FreeBSD machine, I would restart sshd with the -d flag and just watch the output to discover why the keys were not palatable.

Can I do something similar on JunOS?

Best Answer

Unfortunately there are no traceoptions for SSH that I'm aware of. If you have access to a *nix machine with your SSH keys loaded, you could try connecting with:

ssh -vvv user@router

and see which keys are offered and which identities are matched.

If you're using PuTTY, then right-click on the window title and select Event Log to get similar output.