Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: WinSCP session connecting fine but PuTTy session from inside not opening up.

@yash: Please give us (way more) details than "not opening up". PuTTY event logs from both scenarios, for example. WinSCP application log (use /applog=C:\path\app.log command-line switch).
yash

WinSCP session connecting fine but PuTTy session from inside not opening up.

I've updated PuTTY to the latest version.

Also it is working fine using normal PuTTY.
martin

Re: Inverse problem (key works in WinSCP but not in PuTTY)

@gclaborn: Looks like you have an old version of PuTTY.
gclaborn

Inverse problem (key works in WinSCP but not in PuTTY)

Such a strange occurrence. I've used this key to login to servers running CentOS, Alma, Rocky and Debian, but for some reason on Ubuntu WinSCP can use the key while launching PuTTY from WinSCP fails. Launching PuTTY manually with a different session name and same key fails.

While WinSCP is benefiting in my case; I wonder if the same difference caused your situation. Something apparently works differently than PuTTY's session start does, though they share the same settings panel. Very odd.
nilsola

Same key rejected for WinSCP but not for PuTTY

Winscp 5.19.4, connecting to OpenBSD 7.0 stable.
transfer protocol SFTP
Utgåva Windows 10 Pro
Version 21H1
Installerad ‎2021-‎02-‎06
OS-version 19043.1288
Gränssnitt Windows Feature Experience Pack 120.2212.3920.

I have a pubkey that I have used for a long time.
After upgrading OpenBSD to 7.0 stable the key is rejected by the server for
WinSCP but not for PuTTY.
When connecting from PuTTY I get this log message in the sever /var/log/authlog:
Nov  5 23:03:14 evelina sshd[53945]: Accepted publickey for nilsola from 176.10.218.229 port 52231 ssh2: RSA SHA256:A4EFYBSpgYTB4gYo3WxTpSMki3EqRHoUD0iOa4WFuPM

When connecting from WinSCP I get this message in the server /var/log/authlog:
Nov  5 22:49:56 evelina sshd[28222]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

It is the same key. Since this is a RSA/SHA256 key it should work also for WinSCP.
(After adding PubkeyAcceptedAlgorithms=+ssh-rsa in the server sshd_config it works also for WinSCP.)
See also:
https://marc.info/?l=openssh-unix-announce&m=161880182302909&w=2
https://marc.info/?l=openbsd-tech&m=163028217802671&w=2