Win32-OpenSSH icon indicating copy to clipboard operation
Win32-OpenSSH copied to clipboard

windows 10 SSH not accepting password from fedora command line but goes through in pwsh prompt

Open eliassal opened this issue 8 months ago • 6 comments
trafficstars

Prerequisites

  • [x] Write a descriptive title.
  • [x] Make sure you are able to repro it on the latest version
  • [x] Search the existing issues.

Steps to reproduce

I’ve just starting with win32-openSSH on a win 10 machine,added in sshd_config_default at C:\Windows\System32\OpenSSH the following

PasswordAuthentication yes KerberosAuthentication yes PubkeyAuthentication yes

restarted the service. Trying to connect to my win 10 from a fedora box on command line, I get connected,

The authenticity of host 'salam7 (192.168.1.4)' can't be established. ED25519 key fingerprint is SHA256:7rDLx/C2FOBflw1JfESBEgVo6N5lbCUKN0LGetSljNI. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

I accept then I get prompted to enter password. I do enter my password but it is not recognized as follows:

salam7salam@salam7's password: Permission denied, please try again. salam7salam@salam7's password:

salam@fedora:~$ ssh SALAM\salam@salam7 SALAMsalam@salam7's password: Permission denied, please try again. SALAMsalam@salam7's password:

salam@fedora:~$ ssh salam\salam@salam7 salamsalam@salam7's password: Permission denied, please try again. salamsalam@salam7's password:

However, when I try the same from a pwsh prompt it goes through

Expected behavior

Connect through ssh from a linux machine to win 10 machine

Actual behavior

nor recognizing password

Error details


Environment data

PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Fedora Linux 41 (Forty One)
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

latest

Visuals

No response

eliassal avatar Mar 01 '25 16:03 eliassal