kandi X-RAY | sshuttle Summary
kandi X-RAY | sshuttle Summary
Transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling.
Top functions reviewed by kandi - BETA
- Setup the firewall
- Helper function to set a value in the system
- Convert family to string
- Log a string
- Main function for hostwatch
- Enqueue an operation
- Check if stdin is still available
- Called when a connection is received
- Return a list of nameservers for the nameserver
- Handle incoming TCP packets
- Creates a new IPv6 socket
- Return the names of the names of the nameserver
- Return family IP address
- Pre - select pairs
- Run netstat
- Start hostwatch
- Check for hosts on remote host
- Get family IP address
- Handle incoming UDP packets
- Query the TCP port for the TCP port
- Receive a UDP packet
- Start the router
- Create a new daemon process
- Flush the DNS resolver cache
- Check if ssh is running
- Parse IP address
- Bind to the socket
- Run one or more handlers
- Rewrite hosts
sshuttle Key Features
sshuttle Examples and Code Snippets
ecdsakey: [base64-encoded key]
ed25519key: [base64-encoded key]
rsakey: [base64-encoded key]
Fatih Kadir Akın
Transparent Proxying over DigitalOcean Droplets
[ds] <--- Getting do-sshuttle-server Droplet information...
[ds] ---> Powering on do-sshuttle-server (root@) Droplet...
[ds] ---> Power-on R
# See all sshuttle options
# Run sshuttle
sshuttle --remote username@sshserver --ssh-cmd 'ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null' 0/0
# client: Connected.
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/86a44a0a552c673a05f11018459c9f5faae3becc/Formulaemail@example.com
Trending Discussions on sshuttle
There is this program called
sshuttle that can connects to a server and create a tunnel.
I wish to create a bash function that sequentially:
- opens a tunnel to a remote server (
sshuttle -r myhost 0/0),
- opens a tunnel to a remote server (
- performs 1 arbitrary commandline,
kill -s TERM.
A basic idea (that works but the 5 seconds delay is a problem) is like
sshuttle -r myhost 0/0 & ; sleep 5 ; mycommand ; kill -s TERM $(pgrep sshuttle)
expect be used to expect the string "c : Connected to server." that is received from stderr here? My attempts as a newbie were met with nothing but failure, and the man page is quite impressive.
ANSWERAnswered 2022-Mar-10 at 15:46
When you use
expect to control another program, it connects to that program through a pseudo-terminal (pty), so expect sees the same output from the program as you would on a terminal, in particular there is no distinction between stdout and stderr. Assuming that your
mycommand is to be executed on the local machine, you could use something like this as an expect (not bash) script:
I'm trying to copy my ssh-keys into my docker, it's a very simple docker including some LinuxTools via Package Manager. A asking because, I can't come up with a simple solution ADD/COPY seem not to work, using docker-volume or compose seem to be over the top. Please advice....
ANSWERAnswered 2020-Oct-21 at 18:08
You can't copy files into a docker container that live outside of the build directory. This is for security reasons. What you'll need to do is first copy your
id_rsa file into the same directory as your Dockerfile, and then change the
ADD to use the copy you just made, instead of trying to copy it from the absolute path that it is currently using.
I would also suggest changing the
COPY, as it is easier to work with and has less unexpected behavior to trip over.
so at your command line:
We have a Jenkins server which is accessible only from within the VPC on the cloud. On Mac and Linux I use
sshuttle to make a ssh connection to the bastion instance (to act a proxy) and open the Jenkins console in the browser. Everything works fine.
Now I'm on Windows and trying to do the same on WSL2. If I'm not mistaken previously,
sshuttle didn't work on WSL1 (failed with some error message), but I managed to run it on WSL2 without any issue. The ssh connection is established and I can access my Jenkins (using
Then I tried to access my Jenkins on Windows via WSL2:
1. I found the IP address of WSL2 and the port the ssh tunnle:
ANSWERAnswered 2020-Jun-09 at 07:06
I'm not sure, but my guess is that
sshuttle doesn't actually act as a SOCKS proxy and that's why the connection gets reset.
I managed to access my Jenkins on Windows machine using ssh SOCKS proxy:
ssh -D 0.0.0.0:1080 rad@bastion and configured Firefox to use the SOCKS proxy.
Interestingly, for this you don't even need WSL. It seems Windows 10 has OpenSSH and you can use it. Just open CMD and type
ssh -D 1080 rad@bastion and setup Firefox to use localhost as the proxy.
If there's any better solution or any comment/concern (apart from DNS over SOCKS) with this approach, please share.
I am struggling to build this baby Dockerfile:...
ANSWERAnswered 2020-Apr-02 at 14:34
Your Docker DNS could be breaking index file resolution. Try using
docker build --network=host
I have been having issues with openssl and python@2 with brew, which have explained here (unresolved). The documented workaround to reinstall Python and openssl was not working, so I decided I would uninstall and reinstall Python.
The problem is, when you try to install Python 2 with brew, you receive this message:...
ANSWERAnswered 2020-Mar-06 at 17:51
It seems that the homebrew staff really makes it as hard as possible to use Python 2.7 on macOS as they can.
- The linked
brew extractlink is really not helpful, you need to look for answers here about how to make your own tap from extracted sources.
- The linked commit: 028f11f9e is wrong, as it contains the already deleted file.
brew extractcommand doesn't even work correctly, because of the @ in the package name.
The solution is very simple though, you just need to install from the latest known commit:
I want to read data from MongoDB into Kafka's topic. I managed to get this work locally by using the following connector properties file:...
ANSWERAnswered 2020-Jan-31 at 13:49
It's recommended to use connect-distributed script and properties for running Connect/Debezium
Anything that says zookeeper.connect should be removed (only Kafka brokers use that). Anything that says bootstrap servers should point at the address MSK gives you.
If you're getting connection errors, make sure you check firewall / VPC settings
No vulnerabilities reported
You can use sshuttle like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Reuse Trending Solutions
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page