devdotnetorg / docker-openssh-server

Docker base image Ubuntu, Debian, Alpine with OpenSSH started. Support: amd64, aarch64 (ARM64v8), armhf (ARM32v7), RISC-V (riscv64).

Home Page:https://devdotnet.org/post/sborka-docker-konteinerov-dlya-arm-arhitekturi-ispolzuya-buildx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker base image Ubuntu, Debian, Alpine with OpenSSH started

Support: amd64, aarch64 (ARM64v8), armhf (ARM32v7), RISC-V (riscv64).

Docker Stars Docker pulls GitHub last commit GitHub Repo stars

Docker official Image Ubuntu, Debian, Alpine with sshd started. Password authentication.

Upstream Links

Features

  • SSH. Allow SSH connection to the container.
  • Midnight Commander (Visual file manager).
  • Text editors vim, nano, mcedit.
  • Htop (an interactive process viewer for Unix).
  • Network utilities such as ping, traceroute, nslookup, telnet, etc.

Image Tags

Tags are defined by the mask: devdotnetorg/openssh-server:<OS_name>-<OS_version>. For example, the image devdotnetorg/openssh-server:ubuntu-22.04 is built based on Ubuntu version 22.04.

Images for the following OS versions are builded:

  • Ubuntu: 23.04, 22.10, 22.04, 20.04, 18.04, 16.04;
  • Debian: 12, 11, 10;
  • Alpine: 3.18, 3.17, 3.16, 3.15.

Tags for RISC-V (riscv64)

  • :ubuntu-riscv64 - Ubuntu 22.04;
  • :debian-riscv64 - Debian SID;
  • :alpine-riscv64 - Alpine edge.

Quick Start

Environment Variables

Set variable of password for root user:

-e USER_PASSWORD=123456

Run container with public port for connections is 2222, password for user root is 654321, volume openssh-server-data for transfer data in/out of container:

$ docker run -d --name openssh-server -p 2222:22 -e USER_PASSWORD=654321 -v openssh-server-data:/data devdotnetorg/openssh-server:ubuntu

For network is mynetwork:

$ docker run -d --name openssh-server --net mynetwork --ip 172.18.0.20 -p 2222:22 -e USER_PASSWORD=654321 -v openssh-server-data:/data devdotnetorg/openssh-server:ubuntu

docker-compose:

version: '3.5'
services:
  openssh-server:
    image: devdotnetorg/openssh-server:ubuntu
    container_name: openssh-server
    environment:
      - USER_PASSWORD=654321
    volumes:
      - openssh-server-data:/data
    ports:
      - "2222:22"
    restart: always
    networks:
      mynetwork:
        ipv4_address: 172.18.0.20

volumes:
  openssh-server-data:
   name: openssh-server-data
   
networks:
  mynetwork:
    external: true

Connect to container

Run Putty set you IP address and port 2222

login root, password 654321

Shell

Midnight Commander (Visual file manager)

Image of Midnight Commander

Site: http://midnight-commander.org/

GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included.

Start: $ mc

htop (an interactive process viewer for Unix)

Image of htop

Site: http://hisham.hm/htop/

This is htop, an interactive process viewer for Unix systems. It is a text-mode application (for console or X terminals) and requires ncurses.

Start: $ htop

Net tools

Net tools

Assembly for devices

The build for the amd64, aarch64 (ARM64v8), armhf (ARM32v7), RISC-V (riscv64) architecture was done using buildx.

Build script see buildx-tags.sh.

License

MIT License.

Need help?

If you have questions on how to use the image, please send mail to anton@devdotnet.org or visit the web-site DevDotNet.ORG.

About

Docker base image Ubuntu, Debian, Alpine with OpenSSH started. Support: amd64, aarch64 (ARM64v8), armhf (ARM32v7), RISC-V (riscv64).

https://devdotnet.org/post/sborka-docker-konteinerov-dlya-arm-arhitekturi-ispolzuya-buildx/

License:MIT License


Languages

Language:Shell 100.0%