SSH key access on the 6450 series - once more.
So i now have my ICX6450-48p fully flashed with latest, licenced, and set up. As usual i had issues getting SSH key access to work:
First i generated a 2048 bit RSA key with
Code:
ssh-keygen -t rsa -b 2048
But this method doesn't add the
---- BEGIN SSH2 PUBLIC KEY ----
line to the public keyfile. This produces an error when attempting to upload the public key via tftp:
Code:
icx6450(config)#ERROR: key# 1 must begin with ---- BEGIN SSH2 PUBLIC KEY ----
To add that line, i had to add the -e (export) command to ssh-keygen. I ran ssh-keygen again:
Code:
ssh-keygen -t rsa -b 2048 -e
Enter file in which the key is (/home/user/.ssh/id_rsa):
this added the
---- BEGIN SSH2 PUBLIC KEY ---- and
---- END SSH2 PUBLIC KEY ---- to my public keyfile. After uploading that public key it finally worked.
Note i did try to manually add those lines to my public keyfile at first, which did NOT work. It just resulted in
Permission denied (publickey)
So i wrote this for anyone that has the same issues. I didn't notice this being documented in
@fohdeesha 's guide for the ICX6450 series.