Seems pretty silly, but I haven’t found the answer until I started to play with composer and the repositories route, in the end I could get a github repository through ssh with this, pretty convenient.

prettyprint lang-javascript "repositories": [ { "type": "vcs", "url": "ssh://[email protected]:22/myrepo/MyBundle.git" } ],

If you don’t put the port, composer complains and fails.