Skip to content

Instantly share code, notes, and snippets.

@jeremylenz
Last active July 25, 2023 15:01
Show Gist options
  • Save jeremylenz/96b8d8e9700f66cad9e234e59d3c3601 to your computer and use it in GitHub Desktop.
Save jeremylenz/96b8d8e9700f66cad9e234e59d3c3601 to your computer and use it in GitHub Desktop.
# run this on your workstation
# replace centos8-katello-devel-stable.example.com with your actual VM's hostname
# replace IdentityFile with the location of your identity file from 'vagrant ssh-config <box-name>'
ssh -L *:8080:centos8-katello-devel-stable.example.com:80 -L *:3808:centos8-katello-devel-stable.example.com:3808 -L *:3000:centos8-katello-devel-stable.example.com:3000 -L *:4433:centos8-katello-devel-stable.example.com:443 -o IdentityFile=/home/jeremylenz/code/forklift/.vagrant/machines/centos8-katello-devel-stable/libvirt/private_key vagrant@centos8-katello-devel-stable.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment