Skip to content

Is User LocalPath other than default Path supported for authorized_keys file?  #1574

@NealWalters

Description

@NealWalters

"OpenSSH for Windows" version
7.9p1 for Windows

Server OperatingSystem
((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)

Client OperatingSystem
Win 2012/R2

What is failing
To get public key certificate to work, we had to put it in c:\users\testuser.ssh.\authorized_keys.
However, when the user was created, we set the "Home Folder - Local Path" to e:\Integration\SFTP\TestUser.

When we put the .ssh/authorized_keysin the e:\Integratoin\SFTP\TestUser directory, we got the error: " Failed to open file:C:/Windows/.ssh/authorized_keys error:2", which seem quite misleading.

When the user sends a file, it is stored in the e:\Integration\SFTP\TestUser as desired. So the Local path seems to work for the upload/download of files, but not for the .ssh.\authorized_keys.

Expected output
If the local path for the user is defined as e:\Integration\SFTP\TestUser. then I wouldn't expect any error when putting the .ssh\authorized_keys there.

(Also posted here: https://superuser.com/questions/1534321/why-does-openssh-try-to-open-c-windows-ssh-authorized-keys-instead-of-user-dir).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions