Skip to content

Unable to connect to an OpenSSH server via a corp domain user #1667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hellogator1 opened this issue Sep 24, 2020 · 4 comments
Open

Unable to connect to an OpenSSH server via a corp domain user #1667

hellogator1 opened this issue Sep 24, 2020 · 4 comments

Comments

@hellogator1
Copy link

"OpenSSH for Windows" version
OpenSSH_for_Windows_7.7p1

Server OperatingSystem
Windows Server 2019 Datacenter

Client OperatingSystem
Windows Server 2019 Datacenter

What is failing
OpenSSH won't connect using a corporate AD user

Expected output
prompt on remote server

Actual output
Connection reset by 10.8.7.55 port 22

Local user, everything works fine:
ssh -l localwinuser vwazurevm.server.local
Are you sure you want to continue connecting (yes/no)? yes
[email protected] C:\Users\localwinuser>

Only AD users can't connect:
ssh -l CORPDOMAIN\corpaduser vwazurevm.server.local
Connection reset by 10.8.7.55 port 22

ssh -l [email protected] vwazurevm.server.local
Connection reset by 10.8.7.55 port 22

@sasilik
Copy link

sasilik commented Sep 30, 2020

Does sshd_config have AllowUsers row where there is user specified like "domain\username" (double quotation marks included)?

@NoMoreFood
Copy link

Please try the latest version.

@bagajjal
Copy link
Collaborator

bagajjal commented Oct 5, 2020

@sasilik - No need of double quotes.
It should be like this,
AllowUsers contoso\user1

@hellogator1 - Please share client side logs (ssh -vvv user@ip) and server side logs (DEBUG3 enabled).

@qianyueyou
Copy link

Looks like a duplicate of #1543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants