Skip to content

Instantly share code, notes, and snippets.

@fabiand
Last active December 15, 2023 07:18
Show Gist options
  • Save fabiand/ce62b4850685bce57c29c43ea95abf9e to your computer and use it in GitHub Desktop.
Save fabiand/ce62b4850685bce57c29c43ea95abf9e to your computer and use it in GitHub Desktop.
# virtctl is in your $PATH
# You are logged into a cluster
# Then the snippet below enables seamless ssh login.
# Usage `ssh [<user>@]<vmname>.<namespace>.ocp`
# "ocp" can be anything, for convenience replace with your cluster's base fqdn
host *.ocp
ProxyCommand virtctl port-forward --stdio=true %h %p
@fabiand
Copy link
Author

fabiand commented Apr 25, 2023

@dlbewley a neat idea. Is this something you could provide a PR for?

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