NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
gustavouepb
Mar 19, 2024Aspirant
Download Key SSH M4100-26G
I'm trying to download the ssh key for the M4100-26G switch, but the message "key file not valid" only appears. Can anyone suggest a solution as I've found little about the problem so far?
gustavouepb
Mar 21, 2024Aspirant
Yes, but I'm trying to enter the public key of the PC I use to manage it and it says "Key file not valid!". I've already formatted the key with the command ssh-keygen -f netgear.pub -e -m RFC4716 > netgearsw, but it still doesn't work.
schumaku
Mar 21, 2024Guru - Experienced User
Don't we talk of SSH here? Not of https SSL/TLS with private and public keys. AFAIK, the SSH key can be generated for SSH-1 (obsolete) and SSH-2 on the device, the switch itself - from there you can download it to your SSH workstation:
- gustavouepbMar 21, 2024Aspirant
My PC's public key loaded via the web gui looks like this.
And when it is via telnet it gets the message key file not valid. The process I want to do is send my public key to the switch to authenticate using my key and not with the switch login and password. Thank you for the help, I've tried several ways and nothing so far and here in the community I only found this topic posted by Raoni.
- schumakuMar 21, 2024Guru - Experienced User
That's a TFTP push from the switch to the TFTP server. TFTP data and path is correct?
Re-create a new SSH-2 RSA key is not possible either?
- gustavouepbMar 21, 2024Aspirant
They are correct, the server shows in the log that the file was completely downloaded. I have already re-created the key several times with the following commands:
1. ssh-keygen -f swnetgear.pub -e -m PEM > netgearsw.pem
2. ssh-keygen -f swnetgear.pub -e -m RFC4716 > netgearsw
3. ssh-keygen -t rsa -m PEM
The switch firmware is version 10.0.2.35. Any idea what it is? Because the switch doesn't offer any logging that helps.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!