Background ssh tunnel using -fN Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Sun, 28 Jul 2019 20:52:26 +0530
2 files changed,
3 insertions(+),
1 deletions(-)
M
bin/vpnon.sh
→
bin/vpnon.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash +ssh -D 8008 emerald -fN + sudo cp /etc/resolv.conf /etc/resolv.conf.bk sudo cp ~/dotfiles/resolv.conf /etc/resolv.conf sudo openvpn --config ~/client.ovpn
M
zsh/.aliases
→
zsh/.aliases
@@ -2,7 +2,7 @@ #!/usr/bin/zsh
alias gah='sudo $(fc -ln -1)' alias nvime="nvim ~/.config/nvim/init.vim" -alias socks="ssh -D 8008 emerald" +alias socks="ssh -D 8008 emerald -f" alias o="xdg-open" alias gc="git commit -v -s" alias gst="git status --short"