What is the purpose of a domain name to create SSH keys?

Before enabling SSH on firewall/router, we need to create domain name.

Why is it necessary to do that? What does a domain name do and how is it related to SSH? What role does it play in enabling SSH?


It isn't necessary to create a domain name to create SSH keys. The below syntax will allow you to generate RSA keys for SSH use without one.

router(config)#crypto key generate rsa general-keys label RSAKEY
  • so domain name is not necessary, its an optional one ya..
    – Trojan
    Feb 15 '14 at 16:48
  • @satheesh91 Correct, it's not required if you label your own crypto keys.
    – Ryan Foley
    Feb 15 '14 at 16:50

IP domain-name command is used to complete the "crypto key generate rsa command". Check out a couple of these links

  • 1
    i want some real example kindly share it pls. still in confusion
    – Trojan
    Feb 15 '14 at 8:03
  • 2
    NE encourages members to give full answers and discourages the use of link answers. If you can expand on your answer a little more, please do.
    – Ryan Foley
    Feb 15 '14 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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