Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9126277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:00:11+00:00 2026-06-17T07:00:11+00:00

I have been setting up an instance of a server (Amazon EC2, Ubuntu 12.x),

  • 0

I have been setting up an instance of a server (Amazon EC2, Ubuntu 12.x), and have got stuck trying to clone my own private repo from git.

I’ve been looking at https://help.github.com/articles/generating-ssh-keys and https://help.github.com/articles/error-permission-denied-publickey for a while, but still no good.

I have generated a new ssh key pair on the remote machine with

ssh-keygen -t rsa -C "myemailaddress@myemail.com"

and set up my git config fine, and I have added the public key to my github account. The email address is the same as the one I use on my local machine’s ssh key (I don’t know if that matters).

After starting an ssh-agent and then doing ssh-add -l, I get a fingerprint result that matches what is said in my github public key. ssh -T git@github.com also tells me that I have successfully authenticated.

However, whenever I try

git clone https://github.com/dmonopoly/myprivateproject.git

or

git clone git@github.com:dmonopoly/myprivateproject.git

on the remote machine (which I have sshed into),
I get this error:

fatal: could not create work tree dir 'myprivateproject'.: Permission denied

Ideas? I’ve handled the permission denied (public key) before, but this seems different. Help appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:00:13+00:00Added an answer on June 17, 2026 at 7:00 am
    fatal: could not create work tree dir 'myprivateproject'.: Permission denied
                     ^^^^^^^^^^^^^^^^^^^^
    

    That has nothing at all to do with access to the repository. You are trying to clone it to a directory where you don’t have write access. Check permissions on the machine running git clone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have recently been setting up a RTSP server on an AWS EC2
Lately, I have been trying to automate our build process on Amazon EC2 and
I have been setting up an IP blocklist reciently and I was wondering is
I've been setting up a project to run with MVC Turbine and have been
I have been struggling with setting up an iOS (Objective-C) app which utilizes the
I have been hiding a row in a WPF grid by setting the Height
So I am kind of new to setting up servers. And I have been
I have problems setting the focus on an input element that has been created
Have been trying to encrypt an xml file to a string so that I
We have an application which uses an instance of Sql Server locally for its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.