Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Denyhosts | 596 | 12 days ago | 64 | gpl-2.0 | Python | |||||
Automated host blocking from SSH brute force attacks | ||||||||||
Vedetta | 230 | 4 years ago | 2 | isc | Shell | |||||
OpenBSD Router Boilerplate | ||||||||||
Quicssh | 229 | 18 days ago | 1 | May 07, 2021 | 11 | apache-2.0 | Go | |||
SSH over QUIC | ||||||||||
Envoy | 211 | 7 years ago | 19 | gpl-3.0 | C | |||||
A ssh/gpg-agent wrapper leveraging cgroups and systemd/socket activation | ||||||||||
Curse | 179 | 6 years ago | mit | Go | ||||||
CURSE is an SSH certificate signing server, built as an alternative to Netflix's BLESS tool, but without a dependency on AWS. | ||||||||||
Rubydrop | 130 | 8 years ago | 2 | bsd-3-clause | Ruby | |||||
A roll your own Dropbox-like clone written in Ruby. | ||||||||||
Linuxkit Nix | 128 | 2 months ago | 8 | other | Nix | |||||
An easy to use Linux builder for macOS [[email protected]] | ||||||||||
Netevent | 118 | 2 months ago | 4 | gpl-2.0 | C++ | |||||
Input-Event device cloning utility. Use it together with ssh/netcat/... to share input devices among different machines. | ||||||||||
Sidedoor | 109 | 5 months ago | 3 | gpl-3.0 | Shell | |||||
SSH connection daemon for Debian/Raspbian/Ubuntu/etc | ||||||||||
Tor_box | 103 | 5 years ago | 1 | Shell | ||||||
An all-inclusive Tor configuration for Raspberry Pi, serves as both a relay and personal Tor network |
Securely control a remote docker daemon CLI using ssh forwarding, no SSL setup needed.
If you want it available on your system run the following (you may need elevated privileges for this to work):
curl -L https://github.com/dvddarias/rdocker/raw/master/rdocker.sh > /usr/local/bin/rdocker
chmod +x /usr/local/bin/rdocker
If you just want it lying around on your file system:
git clone https://github.com/dvddarias/rdocker.git
cd rdocker
Lets assume you want to control the docker daemon on your webserver.com
server from your local machine. You just run:
rdocker [email protected]
This will open a new bash session with a new DOCKER_HOST variable setup. Any docker
command you execute will take place on the remote docker daemon.
To test the connection run:
docker info
Check the Name:
field it should have the remote hostname .... That's it!!!
You could for example:
docker build
to build an image on the remote host and then docker save -o myimage.tar image_name
to store it locally.docker exec -it container_name bash
to open a shell session on a remote container.rdocker [email protected] docker logs container_name -f --tail 10
to follow the log output of a container.You can choose the local port the docker daemon will be forwarded to, by passing it as the last argument:
rdocker [email protected] 9000
You can also interact with the remote daemon from any other terminal by using the -H parameter of the docker client:
docker -H localhost:9000 images
To stop controlling the remote daemon and close the ssh forwarding, just exit the newly created bash session (press Ctrl+D
).
Basically None. If you can login to your server over ssh and run docker commands this script should work out of the box.
Just remember:
/var/run/docker.sock
otherwise you will get a lot of: An error occurred trying to connect...
. To solve this add the user to the docker group.ssh
to connect to the host so you should also have the the appropriate permissions (private-key, password, etc..).docker
installed on both computers ;).This is a general overview of how it works, feel free to check the script for further details:
localhost:remote_port
to the unix domain socket at /var/run/docker.sock
tcp://localhost:local_port
Tested on Ubuntu, Mint and Debian. It should work on any linux based OS. I don't have a Mac around to test it :(. Contributions are of course welcome.