Skip to content

Instantly share code, notes, and snippets.

@enric1994
Last active March 2, 2021 18:37
Show Gist options
  • Save enric1994/76766e746f81f998769dc742a252ed73 to your computer and use it in GitHub Desktop.
Save enric1994/76766e746f81f998769dc742a252ed73 to your computer and use it in GitHub Desktop.
Gateway configuration: create a file at ~/.ssh/config
# Use this command to avoid the password prompt
# First generate an SSH key pair with: ssh-keygen
# Second, run this command on your system
# ssh-copy-id YOUR_GATEWAY_USER@gateway.computing.dcu.ie
# To open server's tensorboard from my computer
# ssh myserver -L 6006:127.0.0.1:6006
# Note that 'myserver' is the alias I use to connect to my server (see below)
# Acces to my server using the gateway using an alias:
Host myserver
HostName MY_IP
User YOUR_SERVER_USER
Port 22
ProxyCommand ssh -q -x YOUR_GATEWAY_USER@gateway.computing.dcu.ie -W %h:22
# Now you can directly connect to the server by typing 'ssh myserver'
# Note that the port might not be the 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment