Joyent no.de and Cloud9 ide

876 views Asked by At

Hi have copied my cloud9 ide SSH key in my account settings in joyent no.de. When I launch "git push mywebsite.no.de master" in my cloud9 ide console I get the following errors:

Warning: Permanently added 'mywebsite.no.de,64.30.136.97' (RSA) to the list of known hosts.
Permission denied (gssapi-keyex,gssapi-with-mic,publickey).
fatal: The remote end hung up unexpectedly

Could this be related to the following piece of information not being set-up any where? I think its a config for cloud9 ide, but How to set it up?

Host mywebsite.no.de
Port 26674
User node
ForwardAgent yes

2

There are 2 answers

0
Victor On BEST ANSWER

For node.js, git, cloud9 and joyent noobs, like me, this is how you do it:

  • Go to your cloud9 account-> Dashboard->Show your SSH key and copy it
  • SSH to your joyent node machine.
  • add to your ~/.ssh/authorized_keys the pubkey you just copied from Cloud9 (just copy it in that file, if it doesn't exist)
  • Go to Cloud9, to the editor, and in the command line do: git remote add node ssh://[email protected]:66666/home/node/repo
  • Yes, i know that's not a valid port number, smartass. Put in the port to your no.de machine instead
  • Edit something in cloud 9
  • git commit -a -m 'Victor rules!'
  • git push node master
  • Win!
1
guiomie On

Seems like this is only doable via github. I push from cloud9ide to github, then I pull on my local git, and then I push to Joyent. Kinda over-complicated, but I cant "cd .." thus can't add ssh config file with proper joyent config.