debug1: Offering public key: /share/MD0_DATA/XXX/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Why is this?
Also, I notice after disabling Pubkey auth on the switch I am actually prompted for a login name twice?
With pubkey enabled and my key passed and authorized, I am only seeing 1 login. Perhaps the key is getting me by the first login, but not the second?
Answer (Tom Watts):
Hi Michael, I believe there is 1 step you have missed.
You need to remove the local log in for the SSH.
I have generated a PPK file using PuttyGen then loaded the public RSA to the switch then defined my user name as tom. Once I removed the local log in and changed it to "none" I was able to enter my SSH user and then bypass any prompts. However I did have to type enable to get to exec mode.
login as: tom
Authenticating with public key "rsa-key-20130218"
Here is my config, please notice the bold section.