From 908947848932d5bf02d1d7b33bdebcc94f79d3d0 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Mon, 3 Jul 2017 10:06:04 +0300 Subject: [PATCH] - Added alias for transmission-remote (create an SSH tunnel before hand, port forward). Adjusted the SSH config accordingly. --- .bashrc | 1 + .ssh/config.d/20_shore | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index d8b4878..71a32ac 100644 --- a/.bashrc +++ b/.bashrc @@ -100,6 +100,7 @@ alias toupper='awk "{print toupper(\$0)}"' alias wifi-portal='curl --silent --fail --write-out "%{redirect_url}" --output /dev/null http://detectportal.firefox.com/success.txt' alias urlencode='perl -MURI::Escape -ne "chomp;print uri_escape(\$_), \"\n\""' alias urldecode='perl -MURI::Escape -ne "chomp;print uri_unescape(\$_), \"\n\""' +alias transmission-remote='ssh -fNo ExitOnForwardFailure=yes xbmc.shore.co.il && transmission-remote' deduce_aws_region () { AWS_DEFAULT_REGION="$(curl --silent \ diff --git a/.ssh/config.d/20_shore b/.ssh/config.d/20_shore index 26791d7..dd0003c 100644 --- a/.ssh/config.d/20_shore +++ b/.ssh/config.d/20_shore @@ -1,11 +1,11 @@ # shore.co.il infrastructure Host ns1.shore.co.il www.shore.co.il -LocalForward 9091 xbmc.shore.co.il:9091 DynamicForward 8080 Host xbmc.shore.co.il ForwardX11 yes +LocalForward 9091 localhost:9091 ProxyCommand ssh ns1.shore.co.il -W %h:%p Host ns2.shore.co.il -- GitLab