Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Aptana Studio to import git project but Permission denied (publickey)

I tried to import an existing project from the github repository into aptana studio but an error says Permission denied (publickey). fatal: The remote end hung up unexpectedly

I made sure to add my ssh to my account in github. I also ran $ssh -vT [email protected] and this is what it says that the private key cannot be found.

On other windows 7 machine I never had a problem importing a Git project but on my home PC I can't get it to work.

like image 459
Kabu Avatar asked May 08 '13 19:05

Kabu


People also ask

How do I fix Permission denied in git?

In terminal enter this command with your ssh file name pbcopy < ~/. ssh/id_rsa. pub This will copy the file to your clipboard Now open you github account Go to Settings > SSH and GPG keys > New SSH key Enter title and paste the key from clipboard and save it. Voila you're done.

How do I fix Git GitHub Permission denied Publickey fatal could not read from remote repository?

The “Permission denied (publickey). fatal: Could not read from remote repository” error is caused by an issue with the way in which you authenticate with a Git repository. To solve this error, make sure your key is being used on your Git account. If it is not, add your key to Git.

What is Publickey in GitHub?

An SSH key is an alternate way to identify yourself that doesn't require you to enter you username and password every time. SSH keys come in pairs, a public key that gets shared with services like GitHub, and a private key that is stored only on your computer. If the keys match, you're granted access.


1 Answers

Apparently this has to do with the proper ssh - keys to be set with aptana. There are two possibilities 1) If you've installed the github for Windows application than you already have a key-pair. It will also be already registered with Github. You can find these under https://github.com/settings/ssh once you've logged on to github. Now you need to explain aptana to use the proper private key for that open Aptana and

  1. go to Window/Preferences -> General/Network Connections/SSH2
  2. Click Add Private Key... and select the github_rsa file, not the pub file, we want to tell aptana what your private key is.

Now aptana will use the proper key to connect to github

like image 148
theking2 Avatar answered Oct 10 '22 02:10

theking2