Method of generating a hexadecimal public key in Stelnet ssh/rsa authentication mode
1. Generating a key
It needs to be generated on your own terminal.
Run the following command. The default generation location is ~/.ssh.
ssh-keygen -t rsa -b 1024 -f yourkeyname -c "comment"
Parameter Description:
-b the length of the key pair, b=bits, and a maximum of 4096.
-t encryption mode. t=type
-f File name, f=output_keyfiles
-c comment
2. Public key conversion
Run the following command:
ssh-keygen -e -m pem -f ~/.ssh/id_rsa.pub | egrep -v "BEGIN|END" | base64 -d | od -t x1 -An -w4 | tr 'a-f' 'A-F' | tr -d ' ' | fmt -w 48
3. Configuration on the switch