login about faq

I have a question: What does %D\.ssh2\authorized_keys mean? I see my old server setting was set to this, whats does %D mean?

asked Apr 14 '14 at 15:31

Rexroth's gravatar image


converted to question Apr 14 '14 at 23:54

Roman's gravatar image

Roman ♦♦

%D is a special character which expands to mean the user's home directory. Both %D and %homedir% expand to the same value.

From the Tectia Server's administrator manual:

Authorized-keys directory

Specify a path to the directory that contains the user public keys that are authorized 
for login. As with the authorization file, the path can contain a pattern string that is 
expanded by Tectia Server. See the options above. 
The default is %D/.ssh2/authorized_keys.

answered Apr 15 '14 at 00:00

Roman's gravatar image

Roman ♦♦

edited Apr 19 '17 at 21:55

Joe%20-%20Tectia%20Support's gravatar image

Joe - Tectia Support ♦♦

Is the .ssh2 folder available in all versions of windows ,Since when i installed server on windows 2003,I could not find this folder,and also i could not deploy the keys from client where it is installed in win 7,and it is showing the below error,Is there any relation between the folder not there and the error which i am getting

Error: failed to upload: file open failed:Permission denied,file:.ssh/authorized_keys/key_xxxx.pub/Failed to get unique file name:Permission denied,file:/-001

thanks ,


answered Aug 06 '15 at 13:01

urspalani's gravatar image


IIRC, you cannot create the .ssh2 folder from Windows Explorer. You can either create an ssh2 folder, then open a command window and rename it there, OR

Connect via ssh to your windows server as an elevated account, navigate to the correct folder, and and from the ssh session create the .ssh2 file


answered Sep 23 '16 at 00:22

ministryman's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Apr 14 '14 at 15:31

Seen: 20,344 times

Last updated: Apr 19 '17 at 21:55

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.