Ok, I think I found it. My "working" laptop is using putty 0.81. My "non-working" laptop is 0.82. I tried the exe for 0.81 on the "non-working" laptop and it connected.
So for some reason, putty 0.82 will not connect to my AsusWRT running RMerlin. Now my router is running a quite old version so maybe there is a compat issue between the new putty and my old RMerlin firmware.
Unable to negotiate with legacyhost: no matching host key type found. Their offer: [outdated key name]
Your Putty client does not support any of the key exchange protocols supported by your router. You can view supported KEX with the OpenSSH client:Dec 4 13:48:06 dropbear[14732]: Exit before auth from <192.168.x.x:53823>: No matching algo kex
ssh -vvv myserver.lan
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.au,kex-strict-s-v00@openssh.com
I would but I intend to replace this thing soon. It is SOOOO old. It has been great for a long time. I have fallen behind so many times and had to reflash and start over, which I hate doing, so I am trying something else soon. For right now, I need to keep this running until I get the new hardware and get it built/configured.Well there are a few keys they discontinued. What I find interesting the server usually replies to the client:
Code:Unable to negotiate with legacyhost: no matching host key type found. Their offer: [outdated key name]
We can debug the server, however you should flash the router to a modern version because the old version of beardrop SSH server has bugs and issues.
I am running v384.19. Yes, I know its old. LOLWhat firmware version are you running on the router?
No issues with using the latest version of Putty (0.82) to access two separate RT-AC68U's, one running latest Asus stock the other running latest Asus-Merlin:
RT-AC68U - 3.0.0.4.386_51722
RT-AC68U - 386.14_2
As a troubleshooting step if you haven't done so already, remove the saved entry (if there is one) for the router and recreate it using Putty's default values. Or disable SSH in the router GUI, reboot the router, then reenable it as a troubleshooting step.
Got the usual Putty Security Alert at first connect to both due to the host key being incorrect (reset both routers in the past). Example alert attached (I hit the Accept button on the alert).
Post edited
If the router is internet facing you really, really, should consider updating the RT-AC68U router to 386.14_2 (17-Nov-2024) due to all the security vulnerabilities that have been patched in the firmware since 14-Aug-2020.in I am running v384.19. Yes, I know its old. LOL
There's also no time component if you're using authorised keys, e.g. ssh-rsa.I looked it up, time is only needed with SSL authentication. But not with user/password. But the thread starter needs to look at the logs in the router into why the laptop is rejected.
I am running v384.19.
A firmware flash should do the trick. But personally, I don't use store bought wifi routers for anything less than an access point. I run a recycled AMD FX machine with ipfire with standard versions of services.I would but I intend to replace this thing soon. It is SOOOO old. It has been great for a long time. I have fallen behind so many times and had to reflash and start over, which I hate doing, so I am trying something else soon. For right now, I need to keep this running until I get the new hardware and get it built/configured.
ssh -Q kex
ssh -Q cipher
ssh -Q mac
Oh well, I guess they were not helpful in making Beardrop SSH because those are the standard SSH commands on Open SSH.I am in an SSH session with the Asus and those commands do not work. SSH is there but the arguments you have do not work. I am guessing its the version of ssh thats installed in the RMerlin build.
Try removing the entry (i.e., entire line) in the known_hosts file using your editor of choice (nano is mine).Looking around on the asus, I have found there's a ".ssh" directory that has 2 files, authorizedkeys and known_hosts. I can view the known_hosts and it has 1 line with my IP and ssh key. The authorizedkeys appears empty or I just can't open it because when I run "cat" on it, it shows nothing. I thought I might be able to see the available kex in there but I can't. When I try to use something like winscp to browse it, the ".ssh" directory is not there at all.
Since the reported issue appears to be between your laptop running PuTTY v0.82 and your router’s Dropbear SSH server, and the system log on the server side indicates there's an error during the key exchange when trying to connect, I recommend running the PuTTY CLI executable in verbose mode to see what errors are being generated on the client side.OK I looked in the syslog.log file right after I tried to connect. Here is what I found:
Dec 4 13:48:06 dropbear[14732]: Child connection from 192.168.x.x:53823
Dec 4 13:48:06 dropbear[14732]: Exit before auth from <192.168.x.x:53823>: No matching algo kex
plink -v -P "PortNumber" "IPaddress" -i "C:/PATH/TO/PRIVATE/KEY/FILE/puttyPrivateKey.ppk"
plink -v -P 22 192.168.50.1 -i "C:/PATH/TO/PRIVATE/KEY/FILE/puttyPrivateKey.ppk"
ssh -vvv -p "PortNumber" "IPaddress" 2>&1 | findstr /n /c:"Remote protocol" /c:"KEXINIT proposal" /c:"algorithms:" /c:"kex:"
ssh -vvv -p 22 192.168.50.1 2>&1 | findstr /n /c:"Remote protocol" /c:"KEXINIT proposal" /c:"algorithms:" /c:"kex:"
Thanks.Since the reported issue appears to be between your laptop running PuTTY v0.82 and your router’s Dropbear SSH server, and the system log on the server side indicates there's an error during the key exchange when trying to connect, I recommend running the PuTTY CLI executable in verbose mode to see what errors are being generated on the client side.
Use the following command on a Windows Command Prompt terminal:
"PortNumber" is the port number assigned to the Dropbear SSH Server.Rich (BB code):plink -v -P "PortNumber" "IPaddress" -i "C:/PATH/TO/PRIVATE/KEY/FILE/puttyPrivateKey.ppk"
"IPaddress" is the LAN IP address assigned to the router.
And, of course, provide the full path to your own private key used by PuTTY (using forward slashes).
EXAMPLE:
Post a clear & readable screenshot showing the full output from the command after redacting any sensitive information (e.g. public WAN IP address, username, password).Code:plink -v -P 22 192.168.50.1 -i "C:/PATH/TO/PRIVATE/KEY/FILE/puttyPrivateKey.ppk"
In addition, I suggest posting another screenshot showing the full output of the following command (from a Windows Command Prompt):
(same parameters as explained above)Rich (BB code):ssh -vvv -p "PortNumber" "IPaddress" 2>&1 | findstr /n /c:"Remote protocol" /c:"KEXINIT proposal" /c:"algorithms:" /c:"kex:"
EXAMPLE:
Code:ssh -vvv -p 22 192.168.50.1 2>&1 | findstr /n /c:"Remote protocol" /c:"KEXINIT proposal" /c:"algorithms:" /c:"kex:"
BTW, do not just post a couple of lines of output. Show as much data as possible and allow other people with more networking experience take a look at all the data to help you diagnose the problem.
Just my 2 cents.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!