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

win7: key based auth failed when when run ssh, scp, sftp in a loop #781

Closed
bingbing8 opened this issue Jun 22, 2017 · 0 comments
Closed

Comments

@bingbing8
Copy link
Contributor

bingbing8 commented Jun 22, 2017

Please answer the following
"OpenSSH for Windows" version
0.0.16.0

Server OperatingSystem
Windows 7 Professional

Client OperatingSystem
Windows 7 Professional

What is failing
remote user profile crashes when run ssh, scp, sftp in a loop
as the result, key based auth failed due to the fact the authorized_key file is not found

Expected output
all the commands should work

Actual output

$a = 0
while ($a++ -lt 20) {ssh user@localhost echo %userprofile%}
C:\Users\sshtest_ssouser
C:\Users\TEMP

when profile crashes, the registry key changed from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-37xxxx039-4189152760-3792XXXXXXX-1003 to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-37xxxx039-4189152760-3792XXXXXXX-1003.bak
.bak is added to the registry

Note:
in sshd.log, the path to authorzed_keys it looks for are:
C:\Users\TEMP/.ssh/authorized_keys
C:\WINDOWS/.ssh/authorized_keys

@bingbing8 bingbing8 changed the title key based auth failed when when run ssh, scp, sftp in a loop in win7 win7: key based auth failed when when run ssh, scp, sftp in a loop Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants