Skip to content

Instantly share code, notes, and snippets.

@atomicstack
Last active June 15, 2021 11:44
Show Gist options
  • Save atomicstack/36be6c71c24fe1b60070bfd4a1a4159d to your computer and use it in GitHub Desktop.
Save atomicstack/36be6c71c24fe1b60070bfd4a1a4159d to your computer and use it in GitHub Desktop.
example Match stanza for ssh_config, which executes echo "hello world" before connecting to a (specific) host as a specific username. note: redirection to STDERR is necessary; using STDOUT will result in no output
Match host $HOSTNAME exec "echo 'hello world' 1>&2"
User $USERNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment