PowerShell / PowerShell/Win32-OpenSSH
windows 10 SSH not accepting password from fedora command line but goes through in pwsh prompt
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Fedora command-line connections and the equivalent pwsh connection described in the issue. Review the sshd_config_default settings under C:\Windows\System32\OpenSSH and compare the username and password-authentication behavior; done means a Linux SSH client can authenticate to the Windows 10 host using the documented account format.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fedora, linux, powershell
- Domain
- authentication, networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100