sshuttle | Wrong project !
kandi X-RAY | sshuttle Summary
kandi X-RAY | sshuttle Summary
Wrong project! You should head over to http://github.com/sshuttle/sshuttle
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Setup the firewall
- Convert family to string
- Log to stdout
- Run iptables on the specified family
- Connect to a remote host
- Compress an empackage
- Read a file
- Flush all pending messages
- Callback called when a connection is received
- Connect via ssh
- Run one or more handlers
- Check if sshuttle is running
- Start the router
- Check if nmb lookup is available
- Connects to the socket
- Daemonize the process
- Setup sys stdout and stdout
- Perform pre selection
- Process a UDP packet
- Given a TCP socket get the IP address
- Log string to sys stdout
- Rewrite hosts
- Start hostwatch
- Generate the usage line
- Check if a hostname is available
- Start the hostwatch
- Called when a TCP connection is received
- Parse command line arguments
sshuttle Key Features
sshuttle Examples and Code Snippets
apiVersion: v1
kind: Secret
metadata:
name: sshuttle
namespace: sshuttle
type: Opaque
data:
ecdsakey: [base64-encoded key]
ed25519key: [base64-encoded key]
rsakey: [base64-encoded key]
---
apiVersion: v1
kind: ConfigMap
metadata:
name: s
$ ./do-sshuttle
do-shuttle v0.0.1
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
sshuttle --help
# Run sshuttle
sshuttle --remote username@sshserver --ssh-cmd 'ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null' 0/0
# client: Connected.
Community Discussions
Trending Discussions on sshuttle
QUESTION
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)
Could 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.
ANSWER
Answered 2022-Mar-10 at 15:46When 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:
QUESTION
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.
...ANSWER
Answered 2020-Oct-21 at 18:08You 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 ADD
to COPY
, as it is easier to work with and has less unexpected behavior to trip over.
so at your command line:
QUESTION
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 curl
).
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:
ANSWER
Answered 2020-Jun-09 at 07:06I'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.
Thanks.
QUESTION
I am struggling to build this baby Dockerfile:
...ANSWER
Answered 2020-Apr-02 at 14:34Your Docker DNS could be breaking index file resolution. Try using docker build --network=host
QUESTION
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:
...ANSWER
Answered 2020-Mar-06 at 17:51It 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 extract
link 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.
- The
brew extract
command 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:
QUESTION
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:
...ANSWER
Answered 2020-Jan-31 at 13:49It'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
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sshuttle
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.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page