Adding this comment:
I now believe the owner of this SFTP site actually did finally add the RSA key to the site, after several hours where I was getting the afore-mentioned error (That the Key was not the proper one), and not a result of me using the WinSCP GUI and connecting (although the flow of events had originally led me to that conclusion).
In my WinSCP "log" where I'm dumping the log from the WinSCP automation, I do notice that the SFTP site, as WinSCP sees it, went from:
Server version: SSH-2.0-OpenSSH_7.4
to:
Server version: SSH-2.0-OpenSSH_8.7
Also, in the log, I see this before the recent "issue":
Server also has ecdsa-sha2-nistp256 host key, but we don't know it
But afterwards it shows:
Server also has ssh-ed25519/ecdsa-sha2-nistp256 host keys, but we don't know any of them
Now the odd part of that...
Prior to this weekend changes, after that entry in the log, the "host Key", even though my
open
statement with parameter:
-hostkey="ssh-rsa 2048 <KEY>"
That hostkey in the log (prior to the server going to OpenSSH 8.7, and apparently adding "SSH-ed25519") shows:
Host key fingerprint is:
ssh-ed25519 256 <"what I called the NEW KEY Above, Previous Post">
But after the remote host went to OpenSSH 8.7, it now shows the expected RSA Host Key:
Host key fingerprint is:
ssh-rsa 2048 <KEY>
Any comments on this are welcome. My original questions are still valid, as I'm trying to understand what might have happened on this server, to understand why some processes are failing.
- Joe P.