Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Intellij IDEA is asking for an ssh key to check out the files from github

When I go to "Check out from version control" -> "git", and then enter the url that was provided in the teacher's notes, I am asked for an SSH key. What should I do?

I also get "Authentication using key /home/ubuntu/.ssh/id_rsa failed.". How do I fix that error?

UPDATE:

I was able to clone the repository by getting the url from the github page where the project is hosted (https://github.com/treehouse-projects/java-fp-indeed-jobs.git), but the url provided doesn't work (git@github.com:treehouse-projects/java-fp-indeed-jobs.git). Any ideas why this would be the case?

1 Answer

Tyler B
Tyler B
5,787 Points

git@github.com:treehouse-projects/java-fp-indeed-jobs.git is an SSH link you'll need to set up an SSH key to use this link to clone and interact with the repo. the other link that starts with the 'https' uses the https protocol so it requires signing in (possibly multiple times) to clone and interact but should work just fine.

If you'd like to set up SSH keys checkout the settings page in Github (accessed under your icon in the top right) and click on SSH and GPG keys. There are some links in there to walk you through how to get going.