Last active
July 29, 2020 09:36
-
-
Save tomsherborne/1a63592b6ccd9aee8c228f36569e1592 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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