Skip to content

Instantly share code, notes, and snippets.

@tomsherborne
Last active July 29, 2020 09:36
Show Gist options
  • Save tomsherborne/1a63592b6ccd9aee8c228f36569e1592 to your computer and use it in GitHub Desktop.
Save tomsherborne/1a63592b6ccd9aee8c228f36569e1592 to your computer and use it in GitHub Desktop.
# Make sure the port is allowed for SSH on the server
REMOTE_PORT=1234
LOCAL_PORT=1234
USER=""
MACHINE=""
ssh -N -L localhost:${REMOTE_PORT}:localhost:${LOCAL_PORT} ${USER}@${MACHINE}.inf.ed.ac.uk
### James Owers port forwarding setup
local_port=1234
remote_port=1234
user=s1833057
first_server=staff.ssh.inf.ed.ac.uk
second_server=typex.inf.ed.ac.uk
ssh -L ${local_port}:localhost:${remote_port} -J ${user}@${first_server} ${user}@${second_server}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment