Skip to content

Instantly share code, notes, and snippets.

@Spepe13
Last active November 17, 2022 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spepe13/9a01dc1fc4f5cc95815fe388991a1a57 to your computer and use it in GitHub Desktop.
Save Spepe13/9a01dc1fc4f5cc95815fe388991a1a57 to your computer and use it in GitHub Desktop.
[SSH Server Connection on Mac] #Magento #Elegento

Connecting to a Server via SSH in Terminal




Step 1: Open Terminal

Go to Aplications --> Terminal

Step 2: Enter the SSH command

Command for tunnel connection to stagenew.elegento.com :

ssh -N -L 22003:stagenew.elegento.com:22002 USER@server2.elegento.com -p 22002

Command for tunnel connection to stage2.elegento.com :

ssh -N -L 22004:stage2.elegento.com:22002 USER@server2.elegento.com -p 22002

Command for tunnel connection to stage3.elegento.com :

ssh -N -L 22005:stage3.elegento.com:22002 USER@server2.elegento.com -p 22002

  • Change the USER variable with your username.
  • When you run the command you must set the password.

You will need to ask an Elegento Member to provide you USER and Password.

For each tunnel connection you must open new terminal window. Press command + **N **

Type command + C to end the connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment