12-12-2017 04:43 AM - edited 03-05-2019 09:38 AM
Hi, I encountered this issue which is I insert crypto key generate rsa, it displayed "please define a hostname other than switch". Can I know what is the solution to this?
12-12-2017 06:31 AM - edited 12-12-2017 06:32 AM
Hi
If you are configuring SSH, it has some requirements:
- Not a default hostname so you can configure for example:
conf t
hostname MY-SWITCH
- Have a dns domain
conf t
ip domain name MYDOMAIN.com
Once you have included these lines you will able to create the rsa key.
Hope it is useful
:-)
12-12-2017 10:05 AM
when you have added the domain name as Julio stated and you go to create the keys again the default will be 512 , type 1024 and hit return so it only uses ssh v2 as v1 is unsecure and can be hacked and its advised to not use it anymore where possible
08-20-2020 06:07 AM
Hello,
You don't need to define ip domain name when you define label when generating ssh keys. Example:
crypto key generate rsa modulus 2048 label sshkeys
According to Cisco, domain is required when there is no label defined so it goes to check domain name.
05-15-2022 12:42 AM
wonderful!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide