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
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.
schumaku
Mar 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.- gustavouepbMar 22, 2024Aspirant
I found this question about the M5300 switch (https://community.netgear.com/t5/Managed-Switches/Key-based-SSH-authentication-on-M5300/td-p/1621508) where the conclusion reached was that it is not possible to send the user key to the switch. Is that really it? schumaku FURRYe38 raoni
- schumakuMar 22, 2024Guru - Experienced User
gustavouepb wrote:
I found this question about the M5300 switch (https://community.netgear.com/t5/Managed-Switches/Key-based-SSH-authentication-on-M5300/td-p/1621508) where the conclusion reached was that it is not possible to send the user key to the switch. Is that really it? schumaku FURRYe38 raoni
Yes, create the key on the switch (for SSH-2 of course) ....
schumaku wrote:
That's a TFTP push from the switch to the TFTP server. TFTP data and path is correct?
... at the end of the day that's a download from the switch to the PC.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!