Well, you didn't really provide all the data points (e.g. the exact error message in context). Don't be afraid to show *all* the data and as much info as possible; do not just describe and comment on it.... When us9ng the v0.82 version of plink, I got the same error as putty so I grabbed v0.81 ...
I don't feel like pulling teeth this evening.
It is one the reasons why I run a server as my router and these store bought routers as access points.Why would you want to waste your precious time on this?
AC68U
384 code base and won't update
replacing router in a couple of weeks
I checked and both of those options are set that way in the profile.See if Version 2 is being used in the PUtty.
View attachment 62901
Also under SSH->auth make sure your username/password auth (keyboard-interactive) is enabled:
View attachment 62902
If you change anything, be sure to save by clicking the session tab, select Default settings and save.
It does actually. And with the verbose option it outputs more information to stdout, as seen in post #40.Plink is not designed to be used as a console interface. Therefore, it does not output to stout to ask for the username/passowrd.
C:\>plink 192.168.1.1
login as: admin
admin@192.168.1.1's password:
Access granted. Press Return to begin session.
ASUSWRT-Merlin RT-AX86U 3004.388.7_0 Fri Apr 26 18:22:46 UTC 2024
admin@RT-AX86U:/tmp/home/root#
I think the only thing I did not provide was the output from the failed plink v0.82. I thought the point was to show the successful output so I posted all of that. Here is the output from the plink v0.82 error:Well, you didn't really provide all the data points (e.g. the exact error message in context). Don't be afraid to show *all* the data and as much info as possible; do not just describe and comment on it.
When there are several moving parts involved, we don't know which data may be important and which is not, or what could be a relevant clue, and what's irrelevant until we look at it in the proper context. By not providing as much data as requested, we only get small pieces of the puzzle (it's like trying to watch a movie through a straw), and I don't feel like pulling teeth this evening.
I think the only thing I did not provide was the output from the failed plink v0.82. I thought the point was to show the successful output so I posted all of that. Here is the output from the plink v0.82 error:
Looking up host "192.168.x.x" for SSH connection
Connecting to 192.168.x.x port 22
We claim version: SSH-2.0-PuTTY_Release_0.82
Connected to 192.168.x.x (from 192.168.x.y:49152)
Remote version: SSH-2.0-dropbear
Using SSH protocol version 2
Doing ECDH key exchange with curve Curve25519, using hash SHA-256 (SHA-NI accelerated)
Network error: Software caused connection abort
FATAL ERROR: Network error: Software caused connection abort
Is there something else I am missing that I did not include? I re-read your post and I have 100% of the output from the commands you mentioned.
You’re completely wrong about that. The plink executable is PuTTY's CLI tool, and it's designed for both interactive and automated logins. Although it's typically/primarily used for automated operations, there's nothing that prevents you from using it for interactive sessions.Plink is not designed to be used as a console interface. Therefore, it does not output to stout to ask for the username/passowrd.
...
I get where you're coming from & understand your point of view. For me, it's more of an academic exercise, and being very curious, I'd just like to understand why PuTTY v0.82 fails while v0.81 succeeds. OTOH, after a long day at work yesterday, I didn’t feel like "pulling teeth" WRT getting the requested output from the OP.Why would you want to waste your precious time on this?
AC68U
384 code base and won't update
replacing router in a couple of weeks
Part of the request for further data was to get the errors generated during the initial SSH connection handshake:I think the only thing I did not provide was the output from the failed plink v0.82. I thought the point was to show the successful output so I posted all of that.
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.
...
Here is the output from the plink v0.82 error:
Looking up host "192.168.x.x" for SSH connection
Connecting to 192.168.x.x port 22
We claim version: SSH-2.0-PuTTY_Release_0.82
Connected to 192.168.x.x (from 192.168.x.y:49152)
Remote version: SSH-2.0-dropbear
Using SSH protocol version 2
Doing ECDH key exchange with curve Curve25519, using hash SHA-256 (SHA-NI accelerated)
Network error: Software caused connection abort
FATAL ERROR: Network error: Software caused connection abort
Is there something else I am missing that I did not include? I re-read your post and I have 100% of the output from the commands you mentioned.
Well, my curiosity won so I took a look at your latest output. It shows that the key exchange seems to have been negotiated between the Dropbear server & the v0.82 client (ECDH key exchange: curve25519-sha256 - the same KEX algorithm that works with OpenSSH & v0.81 clients), but the connection was then immediately aborted so it never gets to negotiate the Host key algorithm.... Here is the output from the plink v0.82 error:
Looking up host "192.168.x.x" for SSH connection
Connecting to 192.168.x.x port 22
We claim version: SSH-2.0-PuTTY_Release_0.82
Connected to 192.168.x.x (from 192.168.x.y:49152)
Remote version: SSH-2.0-dropbear
Using SSH protocol version 2
Doing ECDH key exchange with curve Curve25519, using hash SHA-256 (SHA-NI accelerated)
Network error: Software caused connection abort
FATAL ERROR: Network error: Software caused connection abort
plink -v "My_SSH_Session"
Please read the notes from the author:You’re completely wrong about that. The plink executable is PuTTY's CLI tool, and it's designed for both interactive and automated logins. Although it's typically/primarily used for automated operations, there's nothing that prevents you from using it for interactive sessions.
You should try the plink command for yourself to remove any lingering doubts before posting next.
\C{plink} Using the command-line connection tool \i{Plink}
\i{Plink} is a command-line connection tool similar to UNIX \c{ssh}.
It is mostly used for \i{automated operations}, such as making CVS
access a repository on a remote server.
Plink is probably not what you want if you want to run an
\i{interactive session} in a console window.
Yeah, one of the first things I did was read the changelogs for v0.81 & v0.82 releases. Since v0.81 works fine for the OP, it’s odd that v0.82 fails almost immediately. But I know better than to rely solely on changelog bullet points. The only way to get the nitty-gritty details of the code changes and understand their impact is to look at the source code commits, but that’s beyond the scope here and exceeds the time I’m willing to spend on this academic exercise.@Martinski
Have you looked at the PuTTY change log for clues, maybe v0.77 forward.
PuTTY Change Log
www.chiark.greenend.org.uk
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!