Alex Borsody
Alex Borsody

Reputation: 2070

connecting to github through server permission denied (public key)

I am connecting to github through my ftp server. I added the public key generated by my server then tried to connect and it is still giving me "permission denied", I attached a screenshot below.

enter image description here

enter image description here

Upvotes: 1

Views: 542

Answers (1)

Lekensteyn
Lekensteyn

Reputation: 66515

You cannot just ssh into githubs servers in this way. Github's SSH server allows you to use git through their servers, not shell access. You get "permission denied" because you login with user github instead of git.

After adding your SSH public key to Github (which you've done correctly), just use git with the SSH remote.

If you have not a local repo yet, just use something like:

git clone [email protected]:Bumblebee-Project/Bumblebee.git

Otherwise, add a new remote to your existing git repo:

git add origin [email protected]:Bumblebee-Project/Bumblebee.git

After that, push your local repo with:

git push

See also http://help.github.com/remotes/

Upvotes: 1

Related Questions