Skip to content

HaikalRFadhilahh/ubuntu-with-ssh-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Ubuntu Docker Image with SSH Access

Let's start with a brief introduction to the Project, this Project is a Docker Image Script that contains an SSH (Secure Shell) package that you can access via SSH on your local device so that it simulates an SSH over TCP connection on the ubuntu platform via Docker.

This is just a simple project and not difficult to use, and also maybe you need it to simulate ssh or tunneling with cloudflare or ngork or other tunnel platforms.

Let's get into the requirements stage to start or setup this project

Project Requirements

This project is just a docker image and Dockerfile. so you don't need many packages or applications to run it.

  • Docker Engine

Yep, in this project you only need a docker engine installed on your personal device. Let's move on to the next step.

How To Use The Project

To run this project is very easy and only requires some configuration such as Download / Pull Image from Github Container Registry and run the docker image whose guide is below:

  1. Pull Image Docker Ubuntu SSH
docker pull ghcr.io/haikalrfadhilahh/ubuntu-ssh:latest

With the above command you can retrieve the latest version of ubuntu-ssh. But also you want to download a specific version you can replace the :latest tag with :image_version. For example :24.04, you can see the list of image versions on the following page

  1. Running Ubuntu SSH Image and setup cedentials
export SSH_PASSWORD=your_root_password
export UBUNTU_SSH_PORT=22
export UBUNTU_SSH_HOST=127.0.0.1

Note

You can change the variable configuration above to suit your needs.

After running the above command, the next steps are that you can run the command below to start the ubuntu ssh docker service.

docker run --name ubuntu-ssh -p $UBUNTU_SSH_HOST:$UBUNTU_SSH_PORT:22 --env SSH_PASSWORD=$SSH_PASSWORD -d --restart on-failure ghcr.io/haikalrfadhilahh/ubuntu-ssh:24.04

Congratulations you have successfully run docker ubuntu ssh. and you can run the command below for docker ubuntu ssh access

ssh root@$UBUNTU_SSH_HOST -p $UBUNTU_SSH_PORT

Note

You can also build this image to your own liking with the guide below.

If you want to create your own image with the Dockerfile in this repository. you can pull and run docker buildx build -t nama_image_anda:tag_anda --platform linux/amd64,linux/arm64 .. Thank you, I hope you can explore SSH.

Contributing

You can contribute to this project through Pull Requests to this Repository, or you can report bugs or vulnerabilities through the issues feature on github. 🐳

License

Free for personal and commercial use. You may modify and distribute it without restriction.


Created By Haikal and Contributors with ❤️

About

Only simple projects such as Ubuntu Docker Image are installed SSH / OpenSSH Package.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages