Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to deploy an Express app on an Azure "web site" through Github. I have a private repository in package.json dependencies:

"dependencies": {
  "express: "~3.4.0",
  "private-repo": "git+ssh://"

Unfortunately, here's the stacktrace:

Command: C:\DWASFiles\Sites\website002\VirtualDirectory0\site\deployments\tools\deploy.cmd
Handling node.js deployment.
KuduSync.NET from: 'C:\DWASFiles\Sites\website002\VirtualDirectory0\site\repository' to: 'C:\DWASFiles\Sites\website002\VirtualDirectory0\site\wwwroot'
Copying file: 'package.json'
Missing server.js/app.js files, web.config is not generated
Node.js versions available on the platform are: 0.10.18, 0.10.5, 0.6.17, 0.6.20, 0.8.19, 0.8.2.
Selected node.js version 0.10.18. Use package.json file to choose a different version.
npm http GET
npm WARN `git config --get remote.origin.url` returned wrong result ( fatal: Cannot change to 'C:/DWASFiles/Sites/website002/..': Permission denied
npm http 304
npm ERR! git clone Cloning into bare repository 'C:\DWASFiles\Sites\website002\AppData\npm-cache\_git-remotes\git-github-com-private-repo-git-63672f8b'...
npm ERR! git clone 
npm ERR! git clone Could not create directory '/c/DWASFiles/Sites/website002/UserProfile/.ssh'.
npm ERR! git clone Host key verification failed.
An error has occurred during web site deployment.
npm ERR! git clone fatal: The remote end hung up unexpectedly
npm ERR! Error: Command failed: Could not create directory '/c/DWASFiles/Sites/website002/UserProfile/.ssh'.
npm ERR! Host key verification failed.
npm ERR! fatal: The remote end hung up unexpectedly
npm ERR! 
npm ERR!     at ChildProcess.exithandler (child_process.js:637:15)
npm ERR!     at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:735:16)
npm ERR!     at Process.ChildProcess._handle.onexit (child_process.js:802:5)
npm ERR! If you need help, you may report this log at:
npm ERR!     <>
npm ERR! or email it to:
npm ERR!     <>
 npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Program Files (x86)\\nodejs\\0.10.18\\node.exe" "D:\\Program Files (x86)\\npm\\1.3.8\\bin\\npm-cli.js" "install" "--production"
npm ERR! cwd C:\DWASFiles\Sites\website002\VirtualDirectory0\site\wwwroot
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! code 128
share|improve this question
I believe the key here is the "host key verification failed". I don't know exactly how it'd be fixed on windows, but on *nix it would be fixed by distributing an already-verified ~/.ssh/known_hosts file to be installed before trying to pull in the repository. – DerfK Oct 17 '13 at 1:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.