If you try to upload the SSH Key to the switch by command “copy tftp public-key”, and meet the error message “Error. Failed.”, It may because there are some prefixes with the RSA key you generate. Check your SSH Key, make sure your key has no irrelevant content.
ECS4620 series, ECS4510 series, ECS4120 series, ECS4100 series, ECS5520 series, ECS4530 series, ECS2100 series, ECS2110 series
1. SSH key generate
2. Edit the key file (remove the prefix)