From 6a3dcef9ff07cde47c35977917a5d671c13adae2 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 16 Jun 2017 06:23:34 +0300 Subject: [PATCH] - Use SSH's builtin port forwarding on stdin instead of relying on netcat. --- .ssh/config.d/20_shore | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.ssh/config.d/20_shore b/.ssh/config.d/20_shore index 3391367..c7547e3 100644 --- a/.ssh/config.d/20_shore +++ b/.ssh/config.d/20_shore @@ -14,7 +14,7 @@ User nimrod ForwardX11 yes IdentityFile ~/.ssh/shore_ecdsa IdentityFile ~/.ssh/shore_rsa -ProxyCommand ssh ns1.shore.co.il nc %h %p +ProxyCommand ssh ns1.shore.co.il -W %h:%p Host ns2.shore.co.il HostName ns2.shore.co.il @@ -25,7 +25,7 @@ IdentityFile ~/.ssh/shore_rsa Host cgit.shore.co.il HostName cgit.shore.co.il -ProxyCommand ssh ns1.shore.co.il nc %h %p +ProxyCommand ssh ns1.shore.co.il -W %h:%p User nimrod IdentityFile ~/.ssh/shore_ecdsa IdentityFile ~/.ssh/shore_rsa @@ -40,14 +40,14 @@ DynamicForward 8081 Host host01.shore.co.il HostName host01.shore.co.il User nimrod -ProxyCommand ssh ns1.shore.co.il nc %h %p +ProxyCommand ssh ns1.shore.co.il -W %h:%p IdentityFile ~/.ssh/shore_ecdsa IdentityFile ~/.ssh/shore_rsa Host wdr4300.shore.co.il HostName wdr4300.shore.co.il User root -ProxyCommand ssh ns1.shore.co.il nc %h %p +ProxyCommand ssh ns1.shore.co.il -W %h:%p IdentityFile ~/.ssh/shore_ecdsa IdentityFile ~/.ssh/shore_rsa LocalForward 8082 localhost:80 -- GitLab