Active client (port 8180 on helios):
ssh -L 8180:helios.ececs.uc.edu:8180 helios.ececs.uc.edu.
Then, instead of connecting to helios, connect to port 8180 on localhost
Passive server (for example, port 20167 at home):
ssh -R 20167:localhost:20167 helios.ececs.uc.edu.
Your passive server should be listening on port
Note: If you don't have a helios account use your ucfilespace account - in that case replace the 'helios.ececs.uc.edu' on the extreme right in both lines (ssh -R and ssh -L) with ucfilespace.uc.edu (you may have to use <username>@ucfilespace if your username on ucfilespace differs from the username of the machine you are using to make the connection).
Note: If you are using ssh -R and ssh -L as above and find your connection terminated after a while, put the following lines at the end of /etc/ssh/ssh_config:
These lines will establish a heartbeat that will keep the connection alive indefinitely.
Note: Your java code must be
modified to make localhost the connection target instead of
For example, you might do this if you
are using supplied code:
java Homework localhost 8180 franco
instead of this:
java Homework helios.ececs.uc.edu 8180 franco