Skip to content
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

Cannot connect via ssh if username has capital letters - it is misleading #395

Closed
pankajbharti opened this issue Apr 24, 2022 · 0 comments · Fixed by #396
Closed

Cannot connect via ssh if username has capital letters - it is misleading #395

pankajbharti opened this issue Apr 24, 2022 · 0 comments · Fixed by #396

Comments

@pankajbharti
Copy link

pankajbharti commented Apr 24, 2022

Problem/Motivation

I setup a username in config file which was something like 'AppleSSH'. And I tried to connect from a windows host, but I could not.
Connection reset by invalid user AppleSSH 192.168.1.240 port 61433 [preauth]

Took me quite a while to figure out that from the windows client, i had to send in the user name as all lowercase : able to connect it with applessh

Expected behavior

Either config file should not accept a user name with capital letters, OR, the client should be allowed to connect with capital letter username.

Steps to reproduce

Set a username in configuration with some capital letters, and try to connect with that username. Connection will be denied.

@pankajbharti pankajbharti changed the title Cannot connect via ssh unless username is root Cannot connect via ssh unless username with capital letters - it is misleading Apr 24, 2022
@pankajbharti pankajbharti changed the title Cannot connect via ssh unless username with capital letters - it is misleading Cannot connect via ssh if username has capital letters - it is misleading Apr 24, 2022
sinclairpaul added a commit that referenced this issue Apr 24, 2022
Explicitly state usernames will be converted to lower case.

Closes #395
sinclairpaul added a commit that referenced this issue Apr 24, 2022
Explicitly state usernames will be converted to lower case.

Closes #395
@github-actions github-actions bot locked and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant