{"id":18859732,"url":"https://github.com/meibraransari/ubuntu-ssh-enabled","last_synced_at":"2026-03-19T06:45:05.001Z","repository":{"id":240924004,"uuid":"803794479","full_name":"meibraransari/ubuntu-ssh-enabled","owner":"meibraransari","description":"💻 Unlock the power of SSH with this Ubuntu image, perfect for testing and development! 🛠️","archived":false,"fork":false,"pushed_at":"2024-07-31T10:58:40.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T08:45:21.865Z","etag":null,"topics":["ssh-server","ubuntu","ubuntu-server"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meibraransari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-21T11:57:42.000Z","updated_at":"2024-07-31T10:58:43.000Z","dependencies_parsed_at":"2024-07-31T12:04:55.446Z","dependency_job_id":null,"html_url":"https://github.com/meibraransari/ubuntu-ssh-enabled","commit_stats":null,"previous_names":["meibraransari/ubuntu-ssh-enabled"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meibraransari/ubuntu-ssh-enabled","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meibraransari%2Fubuntu-ssh-enabled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meibraransari%2Fubuntu-ssh-enabled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meibraransari%2Fubuntu-ssh-enabled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meibraransari%2Fubuntu-ssh-enabled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meibraransari","download_url":"https://codeload.github.com/meibraransari/ubuntu-ssh-enabled/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meibraransari%2Fubuntu-ssh-enabled/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ssh-server","ubuntu","ubuntu-server"],"created_at":"2024-11-08T04:19:03.259Z","updated_at":"2026-01-27T17:06:29.542Z","avatar_url":"https://github.com/meibraransari.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"---\nCreated: 2024-07-27T14:01:27+05:30\nUpdated: 2024-07-31T16:28:10+05:30\nMaintainer: Ibrar Ansari\n---\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://hub.docker.com/r/ibraransaridocker/ubuntu-ssh-enabled\"\u003e\n    \u003cimg alt=\"Ubuntu SSH Enabled\" src=\"ubuntu.png\" width=\"450\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  📢📢📢 Attention all Docker 🐳 Beginners \u0026 Professionals! 🎯\n\u003c/h1\u003e\n\n\u003cp align=\"left\"\u003e  \n    \u003ca href=\"https://hub.docker.com/r/ibraransaridocker/ubuntu-ssh-enabled\"\u003e\n        \u003cimg alt=\"Docker Pulls Kubernetes Goat\" src=\"https://img.shields.io/docker/pulls/ibraransaridocker/ubuntu-ssh-enabled\" /\u003e\n    \u003c/a\u003e    \n\u003c/p\u003e\n\n# 💻 Unlock the power of SSH with this Ubuntu image, perfect for testing and development! 🛠️\n\n## 🚨 Please note: This image is designed for educational and testing purposes 📚 🧪 ONLY! It is NOT SUITABLE for production environments! 🚫\n\nThis Docker image is built on Ubuntu 22.04 and comes pre-installed with an SSH server, enabling seamless creation of SSH-accessible containers. You can effortlessly configure access using SSH keys or by utilizing a default username and password.\n\n## Step 1: Create Authentication SSH-Keygen Keys.\n```\nssh-keygen -t rsa -f ~/.ssh/ansible_id_rsa_key -b 4096 -C \"This is used for ansible\" -N \"\"\nls -alsh ~/.ssh/\n```\n## Step 2: Pull docker image\n```\ndocker pull ibraransaridocker/ubuntu-ssh-enabled:latest\n```\n## Step 3: Set variables to run the docker container.\n### Change 👇 variables(containername, username, password \u0026 port) according to your need.\n```\ncontainer_name=server_1\nssh_user=ibrar_ansari\nssh_pass=your_secure_password\nssh_port=2023\ncontainer_image=ibraransaridocker/ubuntu-ssh-enabled:latest\nkey_path=~/.ssh/ansible_id_rsa_key.pub\n```\n## Step 4: Run docker container.\n```\ndocker run -itd --name=$container_name -p $ssh_port:22 -e SSH_USERNAME=$ssh_user -e PASSWORD=$ssh_pass -e AUTHORIZED_KEYS=\"$(cat $key_path)\" $container_image\n```\n## Step 5: Test SSH connection \n### Get Node IP:\n```\nhostname=$(hostname -I | awk '{print $1}')\n```\n\n### Pem Key Method:\n```\nssh -i ~/.ssh/ansible_id_rsa_key -p $ssh_port $ssh_user@$hostname\n```\n### Password Method:\n```\nssh -p $ssh_port $ssh_user@$hostname\n```\n\n### 💼 Connect with me 👇👇 😊\n\n- 🔥 [**Youtube**](https://www.youtube.com/@DevOpsinAction?sub_confirmation=1)\n- ✍ [**Blog**](https://ibraransari.blogspot.com/)\n- 💼 [**LinkedIn**](https://www.linkedin.com/in/ansariibrar/)\n- 👨‍💻 [**Github**](https://github.com/meibraransari?tab=repositories)\n- 💬 [**Telegram**](https://t.me/DevOpsinActionTelegram)\n- 🐳 [**Docker**](https://hub.docker.com/u/ibraransaridocker)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeibraransari%2Fubuntu-ssh-enabled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeibraransari%2Fubuntu-ssh-enabled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeibraransari%2Fubuntu-ssh-enabled/lists"}