PowerShell / PowerShell/Win32-OpenSSH
How to ssh to "new" accounts
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
If you have an account either in active directory, or locally created through powershell through new-localuser, the user is unable to SSH in.
It seems like the user isn't fully created until the first login through the GUI. But that's not always possible.
How can we create users that can SSH in?
"OpenSSH for Windows" version
> ((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)
8.0.0.0
Server OperatingSystem
> ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)
Windows 10 Pro
Client OperatingSystem
Literally any. Ubuntu 18.04 commonly.
What is failing
Cannot log in to a machine via SSH unless that user has logged in at lease once through the GUI
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 failure with a locally created user from PowerShell's New-LocalUser and the OpenSSH sshd service on Windows 10. Compare SSH behavior before and after the user's first GUI login, then identify whether the issue is resolved by a documented account-creation step or a server change. Done means a newly created account can authenticate through SSH without a prior GUI login.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- authentication, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100