Search code examples
node.jssshgithubputtyjoyent

no.de pull from github


I am trying to pull or clone a git repo from my joyent smartmachine no.de thru putty. I can connect to my sever easily, but as soon as I write:

git pull [email protected]/accoutName/repo , I get the following error:

Permission denied (publickey). fatal: The remote end hung up unexpectedly

How do I find my smartmachine ssh key to copy and paste it in my github account settings?

Thank you.


Solution

  • If you want to use ssh to pull your repo, you need to add your machine's public rsa key to your github account. If you can create one on your smart machine, it should work. You shouldn't need to use ssh unless you want to read AND write though. I believe github provides read only urls to your repo witch might be a better solution.

    When it comes down to it, the way you're supposed to deploy to your smart machine, is to push to the repo that's set up on it. As far as I know, you can't deploy by having it pull from another repo.

    EDIT: Some resources that will help out a lot would be http://help.github.com/ and http://wiki.joyent.com/display/node/Node.js+Home