add the below line in sshd_config, AuthorizedKeysFile c:\test\authorized_keys_%u The current code adds the current users home directory to the path mentioned in the sshd_config and messes up the path.