SSH over HTTP Proxy

story

nc -X connect is the popular way to communicate with SSH over proxy. However, it’s broken when your client is MacOS.

solution

Install corkscrew

brew install corkscrew

SSH now:

ssh -4 \
-o “ProxyCommand corkscr…


This content originally appeared on DEV Community and was authored by abdennour

story

nc -X connect is the popular way to communicate with SSH over proxy. However, it's broken when your client is MacOS.

solution

Install corkscrew

brew install corkscrew

SSH now:

ssh -4 \
  -o "ProxyCommand corkscrew ip.http.proxy port-http-proxy %h %p" \
  user@ip-machine-in-other-network

.i.e: in following example my HTTP_PROXY is 192.168.1.15:3128. And i want to login into 10.11.6.23

ssh -4 \
  -o "ProxyCommand corkscrew 192.168.1.15 3128 %h %p" \
  user@10.11.6.23

Note : -4 is to force ipv4 over other options (ipv6)


This content originally appeared on DEV Community and was authored by abdennour


Print Share Comment Cite Upload Translate Updates
APA

abdennour | Sciencx (2021-04-25T16:37:40+00:00) SSH over HTTP Proxy. Retrieved from https://www.scien.cx/2021/04/25/ssh-over-http-proxy/

MLA
" » SSH over HTTP Proxy." abdennour | Sciencx - Sunday April 25, 2021, https://www.scien.cx/2021/04/25/ssh-over-http-proxy/
HARVARD
abdennour | Sciencx Sunday April 25, 2021 » SSH over HTTP Proxy., viewed ,<https://www.scien.cx/2021/04/25/ssh-over-http-proxy/>
VANCOUVER
abdennour | Sciencx - » SSH over HTTP Proxy. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/25/ssh-over-http-proxy/
CHICAGO
" » SSH over HTTP Proxy." abdennour | Sciencx - Accessed . https://www.scien.cx/2021/04/25/ssh-over-http-proxy/
IEEE
" » SSH over HTTP Proxy." abdennour | Sciencx [Online]. Available: https://www.scien.cx/2021/04/25/ssh-over-http-proxy/. [Accessed: ]
rf:citation
» SSH over HTTP Proxy | abdennour | Sciencx | https://www.scien.cx/2021/04/25/ssh-over-http-proxy/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.