$ cat ~/.ssh/config
Host *
TCPKeepAlive yes
ServerAliveInterval 60
ServerAliveCountMax 2
ControlMaster auto
ControlPath ~/.ssh/master_%r@%h:%p
Host 14741
Hostname 14741hw.ini.cmu.edu
User tunneler
DynamicForward 8123
Compression yes
LogLevel QUIET
RequestTTY no
Host 741
Hostname 192.168.2.73
User your_username
#ProxyCommand /usr/bin/nc -x 127.0.0.1:8123 %h %p
ProxyJump 14741
# In a terminal
$ #ssh -D 8123 -C -q -N tunneler@14741hw.ini.cmu.edu
$ ssh 14741
SSH tunnel started, shell disabled by the system administrator
TERM environment variable not set.
# In a new terminal
# For macOS user: DO use the /usr/bin/nc
$ #ssh -o ProxyCommand='/usr/bin/nc -x localhost:8123 %h %p' your_username@192.168.2.73
$ ssh 741
Warning: Permanently added '192.168.2.73' (ECDSA) to the list of known hosts.
Enter your platform password (characters will be hidden):
your_username@pico-local-dev-shell:~$
The following is about a containerized developing environment for 14-741/18-631, based on Docker and Ubuntu.
$ git clone https://gist.github.com/fd0a103929ecc867043654dafce410ac.git cmu-14741 && cd cmu-14741
$ docker-compose run --rm ctf
# can also run with Docker
$ docker run --rm -v "`pwd`":/app/ -it lx70716/cmu-14741