Network Engineering Stack Exchange is a question and answer site for network engineers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

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
share|improve this answer
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

share|improve this answer
i want some real example kindly share it pls. still in confusion – Trojan Feb 15 '14 at 8:03
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 posting your answer, you agree to the privacy policy and terms of service.

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