Last active
March 2, 2021 18:37
-
-
Save enric1994/76766e746f81f998769dc742a252ed73 to your computer and use it in GitHub Desktop.
Gateway configuration: create a file at ~/.ssh/config
This file contains hidden or 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
# 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 [email protected] | |
# 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 [email protected] -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