![]() ![]() Make sure you have the port number that you used in your SSH command in our examples we’ve used 1337. This step is the same for Windows, macOS, and Linux. ![]() You can minimize the PuTTY window now, but don’t close it. Enter your sudo username and server password to log in.Now click the Open button to make the connection.Add a name under Saved Sessions and click the Save button.Enter any Source port number between 106, such as 1337.On the left, navigate to: Connection > SSH > Tunnels.From the Session section, add the Host Name (or IP address) of your server, and the SSH Port (typically 22).exe and run it.Ĭomplete the following steps to set up the tunnel: PuTTY doesn’t require admin rights to install just download the. If you haven’t installed it yet, download PuTTY and save it where you like. We’ll walk through termination in Step 3. We would then use the command kill 14345. Note: to terminate the tunnel you’ll have to grab the PID via ps. You will see a line in the output like this: Verify that the tunnel is running with this command: Once you enter the command, you’ll immediately be brought to the command prompt again with no sign of success or failure that’s normal. -N: Tells SSH that no command will be sent once the tunnel is upīe sure to replace your_domain with your sudo user and server IP address/domain name.-C: Compresses the data before sending it.-f: Forks the process to the background.-D: Tells SSH that we want a SOCKS tunnel on the specified port number (you can choose a number between 106).-i: The path to the SSH key to be used to connect to the host.ssh -i ~/.ssh/id_rsa -D 1337 -f -C -q -N your_domain.Then open a terminal application to create an SSH tunnel with SOCKS proxy enabled. Once the key is created, make sure the public side is added to the ‘authorized_keys’ file on your SSH Droplet. On your local computer, create an SSH key if you didn’t create your Droplet with one already in place. Step 1 (macOS/Linux) - Setting Up the Tunnel Users of macOS or Linux have the tools to set up the tunnel pre-installed. PuTTY is used to set up the proxy tunnel for Windows users. For Windows users, you’ll also need either the PuTTY tool or Windows Subsystem for Linux (WSL).An application to configure with the SOCKS proxy, such as the Firefox web browser. ![]() Go here to build your tunnel on a DigitalOcean Droplet. To set this up, you can follow our Initial Server Setup Tutorial for Ubuntu 20.04.
0 Comments
Leave a Reply. |