Create a SOCKS proxy with SSH: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
SSH can be used to create a socks proxy using the following command:
SSH can be used to create a socks proxy using the following command:


  ssh -F /dev/null -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ''''username''''@'''''p or fqdn'''' -ND''''proxy port''''
  ssh -F /dev/null -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '''''username'''''@'''''ip or fqdn''''' -D'''''proxy port'''''


Provide the bowser the the socks infomrmation
Provide the bowser the the socks infomrmation


  Proxy: 127.0.0.1
  Proxy: 127.0.0.1
  Port: '''proxy port'''
  Port: '''''proxy port'''''

Latest revision as of 19:54, 8 December 2025

Tech Notes > Linux > Create a SOCKS proxy with SSH

Problem

SSH access is provided to a jump box however you need HTTP / HTTPS access to the private network.


Solution

SSH can be used to create a socks proxy using the following command:

ssh -F /dev/null -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no username@ip or fqdn -Dproxy port

Provide the bowser the the socks infomrmation

Proxy: 127.0.0.1
Port: proxy port