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?

2 Answers 2


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
    Commented Feb 15, 2014 at 16:48
  • @satheesh91 Correct, it's not required if you label your own crypto keys.
    – Ryan Foley
    Commented Feb 15, 2014 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
    Commented Feb 15, 2014 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
    Commented Feb 15, 2014 at 12:50

Your Answer

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

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