gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml
Note above that you use the remote-objects.yaml so that you get actual "objects" back from the server and not toString() representations meant for viewing in the console. Next build the subgraph you want to visualize:
gremlin> :> g.V(1).outE('knows').subgraph('sg').cap('sg')
==>tinkergraph[vertices:3 edges:2]
The output of that remote traversal submit to the server is stored in a hidden variable called "result" and you can extract the subgraph from that:
gremlin> graph = result[0].getObject()
==>tinkergraph[vertices:3 edges:2]
now that you have a local graph instance you can do your visualization as needed with Gephi.