on the catalyst IOS I hadn't had any problems with activating the ssh auth via public key, but on the Nexus OS I can't seem to find the option. Is it even implemented in some NX-OS version?

  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Aug 14, 2017 at 1:08

2 Answers 2


In NX OS version 6 the following works:

username <your username> sshkey ssh-rsa <your rsa key>

You must of course set the access level with, for example for full access

username <your usernam> role network-admin

You can generate an SSH server key based on your security requirements. The default SSH server key is an RSA key that is generated using 1024 bits.

Here is the link

  • 1
    The given link doesn't works. please check it again.
    – AReddy
    Jun 13, 2016 at 5:59
  • 1
    Please add relevant details to the answer instead of linking to a document.
    – Teun Vink
    Jun 13, 2016 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.