AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Ssh tunnel 802/19/2023 ![]() I prefer netcat: HOST_THAT_SHOULD_HAVE_OPEN_PORT # nc -l 8080 If you have firewall-cmd command installed it's very likely that firewalld is one.īut before blaming the firewall, you should check if a port is open/closed. Depending on your Linux distro you might have different backends and frontends for a firewall. Suppose you can reach the tunnel from the host that is "proxy" (with curl,wget,ncat etc. When you're done using the tunnel, change your program's settings to not use it anymore or else they will not have connectivity while the tunnel is down.From a comment, I conclude that you might have problem with the firewall. You will have to have the SSH connection open whenever you want to utilize it for proxying. With your browser configured to proxy over the SSH tunnel, visit a site that will tell you what your IP address is, such as, and check that your IP address using the proxy matches the public Internet address of your home router. Set the SOCKS Proxy settings to use address localhost port 8080.Go to your program's connection settings.Now that you have SSH running, all you need to do is configure your browser or other program to connect to the SOCKS proxy running on the client machine's port 8080. Configuring Programs to Utilize the Tunnel An added advantage of using a key file with the command line ssh program is that you can run it hidden as a background process instead of having to leave the shell open. Otherwise you will be prompted to enter your password each time you connect. If you use an authentication key, then consult your OS's documentation for details on how to use them with the ssh command or where to place the key file to have it automatically used. Ssh server's IP or domain name] -p 443 -D 8080 All you need to do is open a shell and issue this command with your SSH server's address filled in. Linux, Mac OS, and many other OS's come with command line SSH programs already installed. Each time you connect you will need to enter your router password unless you're using an authentication key.You can now double click the saved session name in the list to load it and open the connection to your SSH server. ![]()
0 Comments
Read More
Leave a Reply. |