An Interest In:
Web News this Week
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
April 25, 2021 04:37 pm GMT
Original Link: https://dev.to/abdennour/ssh-over-http-proxy-41c2
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 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" \ [email protected]
Note : -4
is to force ipv4 over other options (ipv6)
Original Link: https://dev.to/abdennour/ssh-over-http-proxy-41c2
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To