Skip to content

Instantly share code, notes, and snippets.

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 spoelstraethan/f0c0f2543e413c01ff3dac9272aef194 to your computer and use it in GitHub Desktop.
Save spoelstraethan/f0c0f2543e413c01ff3dac9272aef194 to your computer and use it in GitHub Desktop.
ssvnc + ss to find open VNC port from Packer/Vagrant
ssvnc -viewer $(ss -ltH '( dport geq :5900 and dport leq :5999 or sport geq :5900 and sport leq :5999 )' | tr -s [:blank:] |cut -d' ' -f 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment