Skip to content

Instantly share code, notes, and snippets.

@semachka
Last active Nov 26, 2021
Embed
What would you like to do?
Commands

Cleanup Branches Locally

- git branch -D $(git branch)

Rsync through bastion

`rsync -azP -e "ssh {{ Bastion Server }} ssh" ~/Downloads/script  {{ USER }}@{{ PASSWORD }}:/tmp/`
                                                Local Directory                             Remote Directory

Tunnel

- ssh -N -L <LOCAL_PORT>:<REMOTE_SERVER>:<REMOTE_SERVER_PORT> <USER>@<BASTION SERVER>
  - ssh -N -L 11001:b-1.brandvno-staging-kafka.strn7p.c2.kafka.us-east-1.amazonaws.com:11001 oxioeng.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment