Just a note for myself because I always forget the syntax of setting up an SSH tunnel:

If you want to use a custom keypair, you first need to ensure they have the proper permissions:

export PRIVATE_KEY=conf/ssh/id_rsa
chmod g-r $PRIVATE_KEY
chmod o-r $PRIVATE_KEY

Setting up the tunnel can then be done as follows:

export LOCAL=
export REMOTE=
export DESTINATION=user@remote-server.com
export PRIVATE_KEY=conf/ssh/id_rsa

Related Posts

  • Installing Packages from a file on Linux
  • TIL: combining PDF files via the command line
  • Setting up an NFS share on Linux
  • Get the absolute path of a bash script
  • Uninstalling a .pkg file on mac