smarterclayton/geard — pull request #63 by kraman (2014-02-28 18:56:36+00:00)
Title: Add REST API endpoint to get ports (needed for port forwarding).

Output example:

curl "http://node1.domain.com/token/__test__/container/ports?r=0001"
[{"Internal":8080,"External":4343}]

Only exposed ports are available for forwarding. Syntax is

ssh -L :127.0.0.1: user@hostname

Example:

ssh -L 9000:127.0.0.1:4343 gear-0001@node1.domain.com

This would connect 9000 on the local machine to port 8080 on the gear.