{"id":13621461,"url":"https://github.com/bytedream/docker4ssh","last_synced_at":"2025-04-15T01:32:47.886Z","repository":{"id":37483032,"uuid":"439854899","full_name":"bytedream/docker4ssh","owner":"bytedream","description":"🐋 Docker containers and more via ssh","archived":true,"fork":false,"pushed_at":"2023-03-06T13:02:43.000Z","size":258,"stargazers_count":8,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-01T21:47:57.180Z","etag":null,"topics":["container","docker","ssh"],"latest_commit_sha":null,"homepage":"https://github.com/ByteDream/docker4ssh/wiki","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bytedream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-19T12:15:42.000Z","updated_at":"2024-06-05T20:07:48.000Z","dependencies_parsed_at":"2024-06-19T19:06:33.461Z","dependency_job_id":"3d08bcaf-ce65-47a5-9ec2-c8fd0b89b6bb","html_url":"https://github.com/bytedream/docker4ssh","commit_stats":{"total_commits":58,"total_committers":3,"mean_commits":"19.333333333333332","dds":"0.27586206896551724","last_synced_commit":"b12e80200a0c9cda74bd37270219056d1d703e0b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytedream%2Fdocker4ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytedream%2Fdocker4ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytedream%2Fdocker4ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytedream%2Fdocker4ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytedream","download_url":"https://codeload.github.com/bytedream/docker4ssh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223654710,"owners_count":17180569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container","docker","ssh"],"created_at":"2024-08-01T21:01:06.649Z","updated_at":"2024-11-08T08:30:54.547Z","avatar_url":"https://github.com/bytedream.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# docker4ssh - docker containers and more via ssh\n\n**docker4ssh** is an ssh server that can create new docker containers and re-login into existing ones.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ByteDream/docker4ssh\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/code-size/ByteDream/docker4ssh?style=flat-square\" alt=\"Code size\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ByteDream/docker4ssh/commits\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/ByteDream/docker4ssh?style=flat-square\" alt=\"Latest commit\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ByteDream/docker4ssh/releases/latest\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/downloads/ByteDream/docker4ssh/total?style=flat-square\" alt=\"Download Badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ByteDream/docker4ssh/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/ByteDream/docker4ssh?style=flat-square\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ByteDream/docker4ssh/releases/latest\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/ByteDream/docker4ssh?style=flat-square\" alt=\"Release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.gg/gUWwekeNNg\"\u003e\n    \u003cimg src=\"https://img.shields.io/discord/915659846836162561?label=discord\u0026style=flat-square\" alt=\"Discord\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-features\"\u003e✨ Features\u003c/a\u003e\n  ·\n  \u003ca href=\"#%EF%B8%8F-installation\"\u003e⌨ Installation\u003c/a\u003e\n  ·\n  \u003ca href=\"#-usage\"\u003e🖋️ Usage\u003c/a\u003e\n  ·\n  \u003ca href=\"#-license\"\u003e⚖ License\u003c/a\u003e\n\u003c/p\u003e\n\n**Visit the [wiki](https://github.com/ByteDream/docker4ssh/wiki) to get more information and detailed usage instructions**\n\n## ✨ Features\n- Create containers by images (e.g. `ubuntu:21.04@server`)\n- Create specific containers for specific usernames with [profiles](https://github.com/ByteDream/docker4ssh/wiki/Configuration-Files#profileconf)\n- Containers are configurable from within\n- Re-login into existing containers\n- Full use of the docker api (unlike [docker2ssh](https://github.com/moul/ssh2docker), which uses the cli, which theoretically could cause code injection)\n- Highly configurable [settings](https://github.com/ByteDream/docker4ssh/wiki/Configuration-Files#docker4sshconf)\n\n## ⌨️ Installation\n\nFor every install method your OS **must** be linux and docker has to be installed.\n\n- From the latest release (currently only x64 architecture supported)\n\n  Replace the `RELEASE` value in the following oneliner with the latest release [version](https://github.com/ByteDream/docker4ssh/releases/latest).\n  ```shell\n  $ RELEASE=\u003clatest version\u003e; curl -L https://github.com/ByteDream/docker4ssh/releases/download/v$RELEASE/docker4ssh-$RELEASE.tar.gz | tar -xvzf - -C /\n- Building from source\n\n    Before start installing, make sure you have to following things ready:\n    - [Go](https://go.dev/) installed\n    - [Rust](https://www.rust-lang.org/) installed\n    - [Make](https://www.gnu.org/software/make/) installed - optional, but highly recommended since we use `make` in the further instructions\n    \n    To install docker4ssh, just execute the following commands\n    ```shell\n    $ git clone https://github.com/ByteDream/docker4ssh\n    $ cd docker4ssh\n    $ make build\n    $ make install\n    ```\n\n- Install it from the [AUR](https://aur.archlinux.org/packages/docker4ssh/) (if you're using arch or an arch based distro)\n  ```shell\n  $ yay -S docker4ssh\n  ```\n\n## 🖋 Usage\n\nTo start the docker4ssh server, simply type\n```shell\n$ docker4ssh start\n```\n\nThe default port for the ssh server is 2222, if you want to change it take a look at the [config file](https://github.com/ByteDream/docker4ssh/wiki/docker4ssh.conf).\nDynamic profile generation is enabled by default, so you can start right away.\nType the following to generate a new ubuntu container and connect to it:\n```shell\n$ ssh -p 2222 ubuntu:latest@127.0.0.1\n```\nYou will get a password prompt then where you can type in anything since by default any password is correct.\nIf you typed in a password, the docker container gets created and the ssh connection is \"redirected\" to the containers' tty:\n```shell\nubuntu:latest@127.0.0.1's password: \n┌───Container────────────────┐\n│ Container ID: e0f3d48217da │\n│ Network Mode: Host         │\n│ Configurable: true         │\n│ Run Level:    User         │\n│ Exit After:                │\n│ Keep On Exit: false        │\n└──────────────Information───┘\nroot@e0f3d48217da:/#\n```\n\nFor further information, visit the [wiki](https://github.com/ByteDream/docker4ssh/wiki).\n\n## ⚖ License\n\nThis project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0) - see the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytedream%2Fdocker4ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytedream%2Fdocker4ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytedream%2Fdocker4ssh/lists"}