login about faq

SSH CLient Installed on Win 7.

Functions properly

Next time user log into system SSH Broker pops up error

Broker Initialization failed: No such file or directory c:\users\<user>\Application Data\SSH\ssh-broker-config.xml:19 Failed to read......

This is not where the broker file is located. The file is located users\<user>\AppData\Roaming\SSH

Only recourse to correct so far is to re-install the client.

Any ideas on why this is not pointing to right location for broker?

asked Mar 02 '12 at 20:43

davsanto's gravatar image


edited Mar 02 '12 at 21:09

Martin%20Dobsik's gravatar image

Martin Dobsik

I am not sure what exactly are you experiencing. Broker's user's configuration file does not need to exist. If it does not exist, broker will use default configuration. In your case I see that there is an error in one of the configuration files on line 19.

Broker reads user's configuration file from the following location by default (but the location can be changed by global system-wide broker configuration file):

%USERPROFILE%\Application Data\SSH

In Windows Vista and newer operating systems the "Application Data" is not a folder but directory junction which points to:


which is the same place where environment variable APPDATA points to. See example directory listing from my Windows 7 Home Premium system:

C:\Users\<user>>dir /a:h


<DIR>          AppData
<JUNCTION>     Application Data [C:\Users\<user>\AppData\Roaming]


That means the 2 places you are talking about should be exactly the same. The 2 files should be one. That is if all is set up right. You could experience similar problems if the directory junction "Application Data" would not exist, or if it is a folder instead, or if it has wrong access control list assigned on it.

User Account Control (UAC) may also be source of problems. For example if folder redirection would be configured in some special way.

To confuse the whole situation a bit more: in 6.2.1 we have changed all Client/Server/Events/ConnectSecure products to use the %APPDATA% environment variable instead. I mean that starting version 6.2.1 broker will look in this folder by default for its user configuration file:


But it should still be the same location, just defined in different way. We have done it because some people may experience similar issues to what you are probably experiencing. The directory junction "Application Data" only exists to ensure that old legacy applications created for Windows XP will work also on newer systems; This junction has been source of confusion to great many people.

Did my answer help in any way?

With regards



answered Mar 02 '12 at 22:52

Martin%20Dobsik's gravatar image

Martin Dobsik

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: Mar 02 '12 at 20:43

Seen: 5,305 times

Last updated: Mar 02 '12 at 22:52

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